statsmix 0.2.1 → 0.2.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/lib/statsmix.rb CHANGED
@@ -24,7 +24,7 @@ class StatsMix
24
24
  if @test_metric_name
25
25
  @params[:name] = @test_metric_name
26
26
  end
27
- @params[:value] = value if value != nil
27
+ @params[:value] = Float(value) unless value.nil?
28
28
  @params.merge!(options)
29
29
  self.check_meta
30
30
  return do_request
@@ -415,7 +415,7 @@ class StatsMix
415
415
  end
416
416
 
417
417
  def self.urlencode(str)
418
- str.gsub(/[^a-zA-Z0-9_\.\-]/n) {|s| sprintf('%%%02x', s[0]) }
418
+ str.gsub(/[^a-zA-Z0-9_ \.\-]/n) {|s| sprintf('%%%02x', s[0]) }
419
419
  end
420
420
 
421
421
  def self.check_meta
data/statsmix.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{statsmix}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Markiewicz", "Derek Scruggs"]
12
- s.date = %q{2011-11-07}
12
+ s.date = %q{2011-12-06}
13
13
  s.description = %q{A Ruby gem for the StatsMix API - http://www.statsmix.com/developers}
14
14
  s.email = ["tmarkiewicz@gmail.com", "me@derekscruggs.com"]
15
15
  s.extra_rdoc_files = [
@@ -28,7 +28,8 @@ Gem::Specification.new do |s|
28
28
  "statsmix.gemspec",
29
29
  "test/helper.rb",
30
30
  "test/test_statsmix.rb",
31
- "test/vcr_setup.rb"
31
+ "test/vcr_setup.rb",
32
+ "test_all_rubies.sh"
32
33
  ]
33
34
  s.homepage = %q{http://github.com/tmarkiewicz/statsmix}
34
35
  s.licenses = ["MIT"]
@@ -0,0 +1,33 @@
1
+ #!/bin/sh
2
+
3
+ # inspired by http://pivotallabs.com/users/jdean/blog/articles/1728-testing-your-gem-against-multiple-rubies-and-rails-versions-with-rvm
4
+ # on OS X, run using this command: sh test_all_rubies.sh
5
+
6
+ # tells the shell to exit immediately if any of the commands in the script fail
7
+ set -e
8
+
9
+ function run {
10
+ gem list --local bundler | grep bundler || gem install bundler --no-ri --no-rdoc
11
+ echo 'Running tests...'
12
+ rake test
13
+ }
14
+
15
+ rvm use ruby-1.8.6
16
+ run
17
+
18
+ rvm use ruby-1.8.7
19
+ run
20
+
21
+ # rvm use ree-1.8.7
22
+ # run
23
+
24
+ rvm use ruby-1.9.1
25
+ run
26
+
27
+ rvm use ruby-1.9.2
28
+ run
29
+
30
+ rvm use ruby-1.9.3
31
+ run
32
+
33
+ echo 'Success!'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statsmix
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Markiewicz
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-07 00:00:00 -07:00
19
+ date: 2011-12-06 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -119,6 +119,7 @@ files:
119
119
  - test/helper.rb
120
120
  - test/test_statsmix.rb
121
121
  - test/vcr_setup.rb
122
+ - test_all_rubies.sh
122
123
  has_rdoc: true
123
124
  homepage: http://github.com/tmarkiewicz/statsmix
124
125
  licenses: