powertrack 1.0.1 → 1.0.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTE1Y2E3NjE3ZGQzZjU0NTA3MmUyOTkwYWZmNGE0MjFkMzc3ZDM4Yw==
4
+ NDYyMjgxY2I3MjA4YzNhYjRhNjdjMmE2YTljZTE2ZDQ3OTNlYTdlZg==
5
5
  data.tar.gz: !binary |-
6
- NmJkMTBmZTBkYzc3NGQ1YmNlYWExMDNkODAwODYxMWY1NDRkZmVhMg==
6
+ MDQ4YmY0MjhjY2Y1N2MzYjRlNzMyYWY0NzA2Mjc4YjU3ZTcyOWY4Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWE5MDAxZjYwYjRlZGRiYTRhOTlmMzIzY2E4ZTkzNDJmMTgyN2RmNzE5MjM5
10
- YThkNjM4M2MyMmZiY2Q2ZTExOGYwOGRmMDMwOTE2YzM3NWYyYTZjYzM2NzE5
11
- NTZhMzc5NmRhYjY3NTg5NTU1YjE2Nzg3NDJjOTdhOGNiZTE4YmM=
9
+ MzYwNWJkMGYwYjRmMWJmNmMxMDE4OTI4Zjc0YzM3NGEwYzc5MGJjNWU5ZWNj
10
+ NWJhOGEyODQ5ZmZmODFlYzU4OTFmMmNjMDdmYTNhNDMwYTY2OTA3OGM1ODA3
11
+ YWJlMWZhM2QxMWNjMmE5YTZmYzIyOWZiY2ZjNGRlODcwYjFkOTU=
12
12
  data.tar.gz: !binary |-
13
- OGVlZjdmNTE3YWUyMDgwMTNiZTdhODk4ZmJmM2QxOWI5MTFjM2ZiYzUwYmE2
14
- MjQwMWFiMDg4OTlkN2NhZjI3ZDEyMjY2OWNkMDFlMWI0OTJlNmM1YWY3YzFk
15
- NTc5ZTViNjE0OWI0YmU3MDIwZjQ4MjNiYjI1ODhjNGUyZTU5YjA=
13
+ MzkxNGMzMjhmN2Y0ZjVjNDU4YmY2MTE1ZTNjYTM1NjRjMzZlMWY3NzRlNmY2
14
+ MmIwZmM2NGJmOTU2Njg2NWMyZTYyOWE4ZmNmNDRkOTliMTI4OGU3ZmE1MDU1
15
+ MWNiMjI5MzMzM2IwZjQ4NjdmNzA0MGNiYzE2ODMzOGZhZjY2ZmI=
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.2.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- powertrack (1.0.1)
4
+ powertrack (1.0.2)
5
5
  em-http-request (~> 1.1)
6
6
  eventmachine (~> 1.0)
7
7
  exponential-backoff (~> 0.0.2)
data/History.txt ADDED
@@ -0,0 +1,5 @@
1
+ 1.0.2
2
+ -----
3
+
4
+ * to_json can get options in order for powertrack to support the standard
5
+ JSON library (through the MultiJson gem). Thanks to @duncanita for the PR.
@@ -62,8 +62,8 @@ module PowerTrack
62
62
  end
63
63
 
64
64
  # Dumps the rule in a valid JSON format.
65
- def to_json
66
- MultiJson.encode(to_hash)
65
+ def to_json(options={})
66
+ MultiJson.encode(to_hash, options)
67
67
  end
68
68
 
69
69
  # Converts the rule in a Hash.
@@ -1,3 +1,3 @@
1
1
  module PowerTrack
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powertrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Farcy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-18 00:00:00.000000000 Z
13
+ date: 2015-11-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -150,8 +150,10 @@ extensions: []
150
150
  extra_rdoc_files: []
151
151
  files:
152
152
  - .gitignore
153
+ - .travis.yml
153
154
  - Gemfile
154
155
  - Gemfile.lock
156
+ - History.txt
155
157
  - LICENSE.md
156
158
  - README.md
157
159
  - Rakefile