aipim-rails 0.0.179 → 0.0.181

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0991c1067e6306ba73f5c37bd2491e0ce6279f47
4
- data.tar.gz: fd8616584a22eb61e9938d2e49f1d51ef2a58610
3
+ metadata.gz: 2efaa4af9200648b33b27af3f72057130719c82c
4
+ data.tar.gz: 397acdcd7b76b9db5e57c2ba7f91224cf3fe89c6
5
5
  SHA512:
6
- metadata.gz: 7fcc6d76752d03effbed8958845c2a7404cfd8b2c37b8784668600515ea50c481c00458d2026cfacfb35c0e61d1d9914c7f387d9f840e68470777798fd22a3e0
7
- data.tar.gz: 4aa9f107d2627533cd3780d27ccebf7d6429ccee5d1e363d4ba2f87fd49807f91f844c12f43bf21f4f768c54c9d5a5e099c7fa2590d5afa20c3dd2c61e3a3e45
6
+ metadata.gz: 2ae21dee85af1c6ea320890ea255b46b3316525a770f8dc1b5cc77251d9bf94a3af22f52386026fe6b5da54c5d5f6ef341f0a00eb3d4797707d97d00c5a73695
7
+ data.tar.gz: f82eb20c368cf44799db39e5ea419ae5455d5d2d85f19bdb3344dd28169d976da16f501ce52f872917b9f897cbb7b3d618a4d143f2e9269517a3fb39aeeeb031
data/bin/aipim CHANGED
@@ -4,15 +4,18 @@ require 'aipim-rails'
4
4
  path = File.expand_path(File.dirname(__FILE__))+"/../"
5
5
  # pegar o nome dos arquivos das features
6
6
  def get_files
7
- files = []
8
- ls = %x[ls features].split("\n")
9
- ls.each do |f|
10
- f = f.split("/")
11
- f.delete_at(0) if f[0] == "features"
12
- f = f[0]
13
- files << f if !(f =~ /.feature\z/).nil?
14
- end
15
- files
7
+ files = []
8
+ ARGV.delete_at(0)
9
+ ARGV.each do |arg|
10
+ ls = %x[ls #{arg}].split("\n")
11
+ ls.each do |f|
12
+ f = f.split("/")
13
+ f.delete_at(0) if f[0] == "features"
14
+ f = f[0]
15
+ files << f if !(f =~ /.feature\z/).nil?
16
+ end
17
+ end
18
+ files
16
19
  end
17
20
 
18
21
  if ARGV[0] == 'generate'
@@ -110,11 +110,17 @@ module Html
110
110
 
111
111
  output.puts '
112
112
  </ul>
113
- </div>
114
-
113
+ </div>'
114
+
115
+ if scenario[:screenshot]
116
+
117
+ output.puts '
115
118
  <div class="panel-footer scenario-screenshot">
116
119
  <a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>
117
- </div>
120
+ </div>'
121
+ end
122
+
123
+ output.puts '
118
124
  </div>'
119
125
 
120
126
  end
@@ -1,6 +1,6 @@
1
1
  require 'selenium-webdriver'
2
2
 
3
- %x[rm -r aipim/screenshots/*]
3
+ %x[rm -fr aipim/screenshots/*]
4
4
 
5
5
  Before do |scenario|
6
6
  @ScenarioTitle = scenario.title
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aipim-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.179
4
+ version: 0.0.181
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facta TI
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.0.3
80
+ rubygems_version: 2.0.7
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Teste aipim