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 CHANGED
@@ -1,5 +1,10 @@
1
1
  = GemSuit CHANGELOG
2
2
 
3
+ == Version 0.1.2 (May 11, 2011)
4
+
5
+ * Made GemSuit Ruby 1.9.2 compatible
6
+ * Using Rails v3.0.7 as latest version
7
+
3
8
  == Version 0.1.1 (April 23, 2011)
4
9
 
5
10
  * Added suit test {functional,integration,all}
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 "$('.rcms_content.marked[data-store_key=" + key + "]').click()"
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 "var input = $('#{selector} [name=\"#{key}\"]');" +
349
- "if (input.data('cleditor')) {" +
350
- " input.val('#{value}');" +
351
- " input.data('cleditor').updateFrame();" +
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
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.0"
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`.any?{|line| line.include? "`bundle install`"}
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}"
@@ -50,7 +50,7 @@ module GemSuit
50
50
  end
51
51
 
52
52
  def latest
53
- [`rails -v`.match(/\d\.\d+\.\d+/).to_s, "3.0.6"].max
53
+ [`rails -v`.match(/\d\.\d+\.\d+/).to_s, "3.0.7"].max
54
54
  end
55
55
 
56
56
  def target_dir
@@ -71,7 +71,7 @@ module GemSuit
71
71
  # `suit fit`
72
72
 
73
73
  def bundle_install
74
- return if `bundle check`.none?{|line| line.include? "`bundle install`"}
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`.any?{|line| line.include? "`bundle install`"}
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
@@ -2,7 +2,7 @@ module GemSuit
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join(".")
8
8
  end
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.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-04-23 00:00:00 +02:00
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: 27
28
+ hash: 25
30
29
  segments:
31
30
  - 0
32
31
  - 1
33
- - 0
34
- version: 0.1.0
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.6.2
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