smap_rails 0.1.0 → 0.1.1

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: 13bd04f06106ea1d2073b37de74afe497849c50c
4
- data.tar.gz: e74cebb5e1eb01c8ad3fac64380b051a78741533
3
+ metadata.gz: 6e7fcf238812bfd2915a23b2341c4123611a98ec
4
+ data.tar.gz: ca4506ddb4938722214c81db0ae8a5e214fa6d18
5
5
  SHA512:
6
- metadata.gz: 8e43b9f2c02b5eb828752d7e269146b4c58ad397a8aaf4c3dbdf861b48aaf0d466b2d510c292050dcd9c694d606fd0d0385bba711eed139f4a8841f8f0cb4c71
7
- data.tar.gz: 83ba00a03480e9d5de3e45ef44921a5cef7f2911ce111567499d9d129c794c5b1d9181c5cfb66d774bf622bed4f38450d03fb8dbc1982b1e8b545145fd583442
6
+ metadata.gz: cd5f48617135bfdec7335963ae90f2384cea9096e96e09e4ce609f68241dd9adc6f4a03a988eea0c0c1a1346b7205a19db55fac9b6937d993181f33624bde818
7
+ data.tar.gz: ce33fdf018ad1ea9ba935717334be2c808111133f0ffa289fdd8a23df2b73cf0fde5910459b509b8135713ea5c316a845a2aa461c6bb790639d0356323f15c52
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ smap_rails (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ minitest (5.8.4)
10
+ rake (10.5.0)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ bundler (~> 1.11)
17
+ minitest (~> 5.0)
18
+ rake (~> 10.0)
19
+ smap_rails!
20
+
21
+ BUNDLED WITH
22
+ 1.11.2
data/README.md CHANGED
@@ -7,7 +7,7 @@ ES6 Maps with a bunch of convenience methods packaged for the Rails asset pipeli
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'smap_rails'
10
+ gem 'smap'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -18,6 +18,10 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install smap_rails
20
20
 
21
+ Add it to your Javascript manifest file
22
+
23
+ //= require smap_rails
24
+
21
25
  ## Usage
22
26
 
23
27
  Check out the smap js repo [https://github.com/eriwen/smap.js](https://github.com/eriwen/smap.js).
@@ -1,12 +1,16 @@
1
1
  //! Copyright 2012 Eric Wendelin - MIT License
2
2
 
3
3
  /**
4
- * es6-map-shim.js is a DESTRUCTIVE shim that follows the latest Map specification as closely as possible.
4
+ * es6-map-shim.js is a shim that follows the latest Map specification as closely as possible.
5
5
  * It is destructive in the sense that it overrides native implementations.
6
6
  *
7
7
  * This library assumes ES5 functionality: Object.create, Object.defineProperty, Array.indexOf, Function.bind
8
8
  */
9
+
9
10
  (function(module) {
11
+ //no longer distructive
12
+ if(this.Map){return;}
13
+
10
14
  function Map(iterable) {
11
15
  var _items = [];
12
16
  var _keys = [];
@@ -1,3 +1,3 @@
1
1
  module SmapRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smap_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Greene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - Gemfile
64
+ - Gemfile.lock
64
65
  - LICENSE
65
66
  - README.md
66
67
  - Rakefile