gem_suit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/README.textile +11 -7
- data/VERSION +1 -1
- data/gem_suit.gemspec +1 -1
- data/lib/gem_suit/application/utils.rb +1 -1
- data/lib/gem_suit/cli/application.rb +2 -2
- data/lib/gem_suit/cli/builder/rails_app.rb +1 -1
- data/lib/gem_suit/cli/builder.rb +1 -1
- data/lib/gem_suit/cli.rb +1 -1
- data/lib/gem_suit/version.rb +1 -1
- metadata +8 -10
data/CHANGELOG.rdoc
CHANGED
data/README.textile
CHANGED
@@ -334,8 +334,10 @@ module GemSuit
|
|
334
334
|
page.execute_script "$('div#rich_cms_dock a.mark').click()"
|
335
335
|
end
|
336
336
|
|
337
|
-
def edit_content(key)
|
338
|
-
page.execute_script
|
337
|
+
def edit_content(key, css_class = "rcms_content")
|
338
|
+
page.execute_script <<-JAVASCRIPT
|
339
|
+
$(".#{css_class}.marked[data-store_key=#{key}]").click();
|
340
|
+
JAVASCRIPT
|
339
341
|
assert find("#raccoon_tip").visible?
|
340
342
|
end
|
341
343
|
|
@@ -345,11 +347,13 @@ module GemSuit
|
|
345
347
|
begin
|
346
348
|
fill_in key.to_s, :with => value
|
347
349
|
rescue Selenium::WebDriver::Error::ElementNotDisplayedError
|
348
|
-
page.execute_script
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
350
|
+
page.execute_script <<-JAVASCRIPT
|
351
|
+
var input = $("#{selector} [name='#{key}']");
|
352
|
+
if (input.data("cleditor")) {
|
353
|
+
input.val("#{value}");
|
354
|
+
input.data("cleditor").updateFrame();
|
355
|
+
}
|
356
|
+
JAVASCRIPT
|
353
357
|
end
|
354
358
|
end
|
355
359
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/gem_suit.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency "rich_support", "~> 0.1.
|
22
|
+
s.add_dependency "rich_support", "~> 0.1.1"
|
23
23
|
s.add_dependency "thor" , "~> 0.14.6"
|
24
24
|
s.add_dependency "capybara" , "~> 0.4.1.2"
|
25
25
|
s.add_dependency "launchy" , "~> 0.4.0"
|
@@ -38,7 +38,7 @@ module GemSuit
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def bundle_install?
|
41
|
-
`cd #{root_path} && bundle check
|
41
|
+
[`cd #{root_path} && bundle check`].flatten.any?{|line| line.include? "`bundle install`"}
|
42
42
|
end
|
43
43
|
|
44
44
|
def validate_root_path!(path)
|
@@ -95,7 +95,7 @@ module GemSuit
|
|
95
95
|
|
96
96
|
log "(in #{File.expand_path("")})"
|
97
97
|
|
98
|
-
require "suit/shared/test/suit_application.rb"
|
98
|
+
require File.expand_path("suit/shared/test/suit_application.rb")
|
99
99
|
application = SuitApplication.new :validate_root_path => false, :verbose => options.verbose?
|
100
100
|
Dir["suit/rails-*/dummy"].each do |rails_root|
|
101
101
|
application.root_path = rails_root
|
@@ -112,7 +112,7 @@ module GemSuit
|
|
112
112
|
root_path = File.expand_path "suit/rails-#{rails_version}/dummy"
|
113
113
|
command = {2 => "script/#{command}", 3 => "rails #{command.to_s[0, 1]}"}[rails_version]
|
114
114
|
|
115
|
-
require "suit/rails-#{rails_version}/dummy/test/suit_application.rb"
|
115
|
+
require File.expand_path("suit/rails-#{rails_version}/dummy/test/suit_application.rb")
|
116
116
|
SuitApplication.new(:verbose => options.verbose?).bundle_install
|
117
117
|
|
118
118
|
system "cd #{root_path} && RAILS_ENV=#{environment} #{command} #{"-p #{options.port}" if options.port}"
|
data/lib/gem_suit/cli/builder.rb
CHANGED
@@ -71,7 +71,7 @@ module GemSuit
|
|
71
71
|
# `suit fit`
|
72
72
|
|
73
73
|
def bundle_install
|
74
|
-
return if `bundle check
|
74
|
+
return if [`bundle check`].flatten.none?{|line| line.include? "`bundle install`"}
|
75
75
|
puts "Running `bundle install` (this can take several minutes...)".yellow
|
76
76
|
puts "(in #{File.expand_path("")})"
|
77
77
|
`bundle install`
|
data/lib/gem_suit/cli.rb
CHANGED
@@ -133,7 +133,7 @@ module GemSuit
|
|
133
133
|
dirs = [File.expand_path("")]
|
134
134
|
dirs.concat Dir["suit/rails-*/dummy"] if suit_dir?
|
135
135
|
dirs.each do |dir|
|
136
|
-
if `cd #{dir} && bundle check
|
136
|
+
if [`cd #{dir} && bundle check`].flatten.any?{|line| line.include? "`bundle install`"}
|
137
137
|
puts "Running `bundle install` (this can take several minutes...)".yellow
|
138
138
|
system "cd #{dir} && bundle install"
|
139
139
|
end
|
data/lib/gem_suit/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_suit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-05-10 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rich_support
|
@@ -26,12 +25,12 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
28
|
+
hash: 25
|
30
29
|
segments:
|
31
30
|
- 0
|
32
31
|
- 1
|
33
|
-
-
|
34
|
-
version: 0.1.
|
32
|
+
- 1
|
33
|
+
version: 0.1.1
|
35
34
|
type: :runtime
|
36
35
|
version_requirements: *id001
|
37
36
|
- !ruby/object:Gem::Dependency
|
@@ -150,7 +149,6 @@ files:
|
|
150
149
|
- templates/static/suit/shared/test/unit/.gitkeep
|
151
150
|
- templates/static/suit/templates/shared/config/initializers/.gitkeep
|
152
151
|
- templates/static/suit/templates/shared/db/schema.rb
|
153
|
-
has_rdoc: true
|
154
152
|
homepage: https://github.com/archan937/gem_suit
|
155
153
|
licenses: []
|
156
154
|
|
@@ -180,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
178
|
requirements: []
|
181
179
|
|
182
180
|
rubyforge_project: gem_suit
|
183
|
-
rubygems_version: 1.
|
181
|
+
rubygems_version: 1.7.2
|
184
182
|
signing_key:
|
185
183
|
specification_version: 3
|
186
184
|
summary: Test the entire usage workflow (including the generators) of your newly generated or existing gem within Rails 2 and 3 and make the gem development mobile
|