Skip to content

Commit

Permalink
make create_event in dry_run work the same as the normal one; fix wid…
Browse files Browse the repository at this point in the history
…th of editor
  • Loading branch information
cantino committed May 9, 2015
1 parent 8b1bc3c commit 5067104
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ GEM
slop (3.6.0)
spectrum-rails (1.3.4)
railties (>= 3.1)
spring (1.3.3)
spring (1.3.6)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.12.3)
Expand Down
8 changes: 7 additions & 1 deletion app/assets/stylesheets/application.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,18 @@ span.not-applicable:after {

// Credentials and Ace Editor

#ace-credential-value, .ace-editor {
#ace-credential-value {
position: relative;
width: 940px;
height: 300px;
}

.ace-editor {
position: relative;
width: 550px;
height: 300px;
}

// Disabled

.agent-unavailable {
Expand Down
1 change: 1 addition & 0 deletions app/concerns/dry_runnable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def log(message, options = {})
def create_event(event_hash)
if can_create_events?
@dry_run_results[:events] << event_hash[:payload]
events.build({ user: user, expires_at: new_event_expiration_date }.merge(event_hash))
else
error "This Agent cannot create events!"
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/agents/java_script_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def code
end

def credential_referenced_by_code
interpolated['code'] =~ /\Acredential:(.*)\Z/ && $1
interpolated['code'] =~ /\Acredential:(.*)\Z/ && $1.strip
end

def setup_javascript
Expand Down

0 comments on commit 5067104

Please sign in to comment.