bauxite 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +19 -13
- data/doc/created.rid +2 -2
- data/lib/bauxite.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a130d31e748c347616303198db42223b1366c1
|
4
|
+
data.tar.gz: 190e8ddb4c0dfdc29f27f58962088fbc7fbce5f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ffc532a0e81ef8f64c858440f27a14faca03551de377100911e693bc39c307d0709f270109ad407621f40ca4978f0924ceb3fcc2b4fa7ebdf522ade2145414a
|
7
|
+
data.tar.gz: 6d8295934af8ef063fb7cedac8dab0e5aa5dd327fd0b40d5cc00166cc5ef9d6f9170c7810a538957a777d09caeffcd005da8be29914beeff81c86560f8a5b34a
|
data/Rakefile
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
task :default => [:test, :doc]
|
2
2
|
|
3
|
+
CURRENT_VERSION = `ruby -Ilib bin/bauxite --version`.gsub(/^.* /, '')
|
4
|
+
|
3
5
|
# === Gem Package =========================================================== #
|
4
6
|
require 'rubygems'
|
5
7
|
require 'rubygems/package_task'
|
@@ -9,9 +11,9 @@ spec = Gem::Specification.new do |s|
|
|
9
11
|
s.summary = 'Bauxite is a façade over Selenium intended for non-developers'
|
10
12
|
s.author = 'Patricio Zavolinsky'
|
11
13
|
s.email = 'pzavolinsky at yahoo dot com dot ar'
|
12
|
-
s.homepage = '
|
14
|
+
s.homepage = 'https://github.com/pzavolinsky/bauxite'
|
13
15
|
s.license = 'MIT'
|
14
|
-
s.version =
|
16
|
+
s.version = CURRENT_VERSION
|
15
17
|
s.executables = ["bauxite"]
|
16
18
|
s.add_runtime_dependency 'selenium-webdriver', '~> 2.39'
|
17
19
|
s.add_development_dependency 'rake' , '~> 10.1'
|
@@ -26,14 +28,14 @@ spec = Gem::Specification.new do |s|
|
|
26
28
|
]
|
27
29
|
end
|
28
30
|
|
31
|
+
task :package => [ :test, :doc ]
|
32
|
+
task :gem => [ :test, :doc ]
|
33
|
+
|
29
34
|
Gem::PackageTask.new(spec) do |pkg|
|
30
35
|
pkg.need_zip = true
|
31
36
|
pkg.need_tar = true
|
32
37
|
end
|
33
38
|
|
34
|
-
task :package => [ :test, :doc ]
|
35
|
-
task :gem => [ :test, :doc ]
|
36
|
-
|
37
39
|
# === Integration tests ===================================================== #
|
38
40
|
desc "Run integration tests"
|
39
41
|
task :test do
|
@@ -72,16 +74,20 @@ task :inject_license do
|
|
72
74
|
end
|
73
75
|
|
74
76
|
desc "Helper: Update Bauxite version"
|
75
|
-
task :update_version do
|
77
|
+
task :update_version, :version do |t,args|
|
78
|
+
version = args[:version]
|
79
|
+
unless version
|
80
|
+
puts "Usage rake update_version[version]"
|
81
|
+
puts ""
|
82
|
+
puts "Current version: #{CURRENT_VERSION}"
|
83
|
+
exit false
|
84
|
+
end
|
85
|
+
|
76
86
|
content = File.open('lib/bauxite.rb', 'r') { |f| f.read }
|
77
|
-
|
87
|
+
expr = /(.*VERSION = ")([^"]*)(".*)/
|
88
|
+
|
78
89
|
content = content.each_line.map do |line|
|
79
|
-
|
80
|
-
next line unless match
|
81
|
-
version = match[2].split('.')
|
82
|
-
version[1] = (version[1].to_i + 1).to_s
|
83
|
-
version = version.join('.')
|
84
|
-
"#{match[1]}#{version}#{match[3]}\n"
|
90
|
+
line.sub(/(.*VERSION = ").*(".*)/, "\\1#{version}\\2")
|
85
91
|
end.join
|
86
92
|
if version
|
87
93
|
puts "Updated version to #{version}"
|
data/doc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Sun, 26 Jan 2014
|
1
|
+
Sun, 26 Jan 2014 14:39:52 -0300
|
2
2
|
lib/bauxite/actions/break.rb Sun, 26 Jan 2014 13:53:54 -0300
|
3
3
|
lib/bauxite/actions/assert.rb Sun, 26 Jan 2014 13:53:54 -0300
|
4
4
|
lib/bauxite/actions/wait.rb Sun, 26 Jan 2014 13:53:54 -0300
|
@@ -23,7 +23,7 @@ lib/bauxite/actions/load.rb Sun, 26 Jan 2014 13:53:54 -0300
|
|
23
23
|
lib/bauxite/actions/test.rb Sun, 26 Jan 2014 13:53:54 -0300
|
24
24
|
lib/bauxite/actions/alias.rb Sun, 26 Jan 2014 13:53:54 -0300
|
25
25
|
lib/bauxite/application.rb Sun, 26 Jan 2014 13:53:54 -0300
|
26
|
-
lib/bauxite/core/Context.rb Sun, 26 Jan 2014
|
26
|
+
lib/bauxite/core/Context.rb Sun, 26 Jan 2014 14:14:47 -0300
|
27
27
|
lib/bauxite/core/Errors.rb Sun, 26 Jan 2014 13:53:54 -0300
|
28
28
|
lib/bauxite/core/Logger.rb Sun, 26 Jan 2014 13:53:54 -0300
|
29
29
|
lib/bauxite/core/Selector.rb Sun, 26 Jan 2014 13:53:54 -0300
|
data/lib/bauxite.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bauxite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Zavolinsky
|
@@ -172,7 +172,7 @@ files:
|
|
172
172
|
- test/test/test1.bxt
|
173
173
|
- test/test/test2.bxt
|
174
174
|
- test/test/test3.bxt
|
175
|
-
homepage:
|
175
|
+
homepage: https://github.com/pzavolinsky/bauxite
|
176
176
|
licenses:
|
177
177
|
- MIT
|
178
178
|
metadata: {}
|