marso 0.1.1981 → 0.1.5297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 525f7a1606e50e8353a7782a687059d41dad71e0
4
- data.tar.gz: be9425ead0def449f637c47e7e4aad38cd35b9ad
3
+ metadata.gz: cb0aa2039c670471541472edde9051b6833be2f7
4
+ data.tar.gz: c6ff92eadaf654c61cfe301173c54ea3836a043b
5
5
  SHA512:
6
- metadata.gz: 9cf5132e20ddb22aa7ad8f196503fb27247593e45788f5c6772aebaf18d02ff388c94e5ba78967849ac564221cc12fa662078c8db9fb52bc7e89320f5d4ca4ef
7
- data.tar.gz: 8afa4a0163727cb0eef22f8c007d856ab4b4c07a89569661e8bd45e20aaa0a81e220fa3d8aa817d50c6b07655b48dcd06b661b32ceea29464d30ab06e0896e13
6
+ metadata.gz: 36b63b9e57db5ab99e059c8a75d51a89214d69c01c0b91b364d1298f079f26cf310940115cd362c3af7e986b91102614d7639fae46522f9697f1e5320b2f5cdb
7
+ data.tar.gz: d4c4986c86c6542a8a5cf9695cf8c08d5c2c7bb8e90848c06dc4e574a5a2870ef79b976579f23839d4de5fe59bd33b7cfb5a47072d6988f07d090d69d2044048
@@ -0,0 +1,3 @@
1
+ require "marso/version"
2
+ require "marso/assert"
3
+ require "marso/factories"
@@ -1,4 +1,3 @@
1
- require "marso/version"
2
1
  require "colorize"
3
2
 
4
3
  module Marso
@@ -12,7 +11,7 @@ module Marso
12
11
  puts "Assert #{message}: FAILED".red
13
12
  end
14
13
  rescue Exception => e
15
- puts "Assert #{message} FAILED with exception #{e}"
14
+ puts "Assert #{message} FAILED with exception #{e}".red
16
15
  end
17
16
  end
18
17
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module Marso
2
- VERSION = "0.1.%s" % ((Time.now.utc - Time.utc(2014, 5, 28))/60).round
2
+ VERSION ="0.1.5297"
3
3
  end
@@ -1,11 +1,26 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'marso/version'
4
+
5
+ version = "0.1.%s" % ((Time.now.utc - Time.utc(2014, 5, 28))/60).round
6
+ version_file_path = File.join(lib, "marso", "version.rb")
7
+ updated_content = nil
8
+
9
+ # update content
10
+ File.open(version_file_path, "rb") do |f|
11
+ content = f.read
12
+ updated_content = content.gsub(/(?<==).*?(?=\n)/, "\"%s\"" % version)
13
+ end
14
+
15
+ # overwrite version.rb with new content
16
+ File.open(version_file_path, "w") do |f|
17
+ f.write(updated_content)
18
+ end
19
+
5
20
 
6
21
  Gem::Specification.new do |spec|
7
22
  spec.name = "marso"
8
- spec.version = Marso::VERSION
23
+ spec.version = version
9
24
  spec.authors = ["Nicolas Dao"]
10
25
  spec.email = ["nicolas@quivers.com"]
11
26
  spec.homepage = "https://github.com/nicolasdao/marso"
@@ -21,5 +36,5 @@ Gem::Specification.new do |spec|
21
36
  spec.add_development_dependency "bundler", "~> 1.6"
22
37
  spec.add_development_dependency "rake", "~> 10.3"
23
38
  spec.add_runtime_dependency "colorize", "~> 0.7"
24
- spec.add_runtime_dependency "watir-webdriver", "~>0.6"
39
+ spec.add_runtime_dependency "watir-webdriver", "~> 0.6"
25
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1981
4
+ version: 0.1.5297
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Dao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,8 +81,9 @@ files:
81
81
  - LICENSE.txt
82
82
  - README.md
83
83
  - Rakefile
84
- - lib/assert.rb
85
- - lib/factories.rb
84
+ - lib/marso.rb
85
+ - lib/marso/assert.rb
86
+ - lib/marso/factories.rb
86
87
  - lib/marso/version.rb
87
88
  - marso.gemspec
88
89
  homepage: https://github.com/nicolasdao/marso