bauxite 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +19 -13
  3. data/doc/created.rid +2 -2
  4. data/lib/bauxite.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a79031976dbf278abe67693d4a879c6e2ef4e292
4
- data.tar.gz: 6d41186a005452003dbad24083b7b44d7d08b069
3
+ metadata.gz: 29a130d31e748c347616303198db42223b1366c1
4
+ data.tar.gz: 190e8ddb4c0dfdc29f27f58962088fbc7fbce5f2
5
5
  SHA512:
6
- metadata.gz: df42b694e3b77c1c6b2ef400b60a6070f4a67e6042f2596f7a475e82938b87ea0e17d57a11731e5400f83f951e159a11a1ca50fdd6098955e5572ccf47938f97
7
- data.tar.gz: 7722a6c289e506e6851bbd09732096654d65e362820c6d8ab3dc92ff179981341bebe2494cd77c09d822f69ab0c806f4e9793bfd133a16ec67dc2c07cfeb74a8
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 = 'http://rubygems.org/gems/bauxite'
14
+ s.homepage = 'https://github.com/pzavolinsky/bauxite'
13
15
  s.license = 'MIT'
14
- s.version = `ruby -Ilib bin/bauxite --version`.gsub(/^.* /, '')
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
- version = nil
87
+ expr = /(.*VERSION = ")([^"]*)(".*)/
88
+
78
89
  content = content.each_line.map do |line|
79
- match = line.match(/(.*VERSION = ")(.*)(".*)/)
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 13:54:26 -0300
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 13:53:54 -0300
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
@@ -22,7 +22,7 @@
22
22
 
23
23
  #--
24
24
  module Bauxite
25
- VERSION = "0.3.0"
25
+ VERSION = "0.3.1"
26
26
  end
27
27
  #++
28
28
 
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.0
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: http://rubygems.org/gems/bauxite
175
+ homepage: https://github.com/pzavolinsky/bauxite
176
176
  licenses:
177
177
  - MIT
178
178
  metadata: {}