opal-promise-patch 0.0.1.pre1 → 0.0.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: 4739929603f4fa6c7265be95278a7fb3b82ece08
4
- data.tar.gz: c97f202c417dfdbaa0375e40aad1d1dc3b70d798
3
+ metadata.gz: 6615cc8cba834f8252e906e72d8f85ab0b40fece
4
+ data.tar.gz: 07c9d4412f5a475cd297323fe4a0e8830b15e99b
5
5
  SHA512:
6
- metadata.gz: 533618e28dceeb648672e870bd2623657772390df9ce2b9fd1b462c80cdab03d173c2acf7d198e01530239600cde38061b27fc0027b6c3592f203fce68decdfc
7
- data.tar.gz: 006a6c57c5e1d742ae1bc5f89a3556ff52f768c733a4474bbf2cd1437abb140fd8c6f96969be78de6e2951e69fee8d91efe494c7e2c7c8893bd1d2d3bc73a7ab
6
+ metadata.gz: 2741f156e01d0c47c402b94315145290ddcb221a8ad4469421a04ed235831d68adb5aadd3ed752b75d2670935ae06b39c6090c8c32dea427b7259e04476cd4ef
7
+ data.tar.gz: a060833e4020ffdb987efadef2ed8856774d9533c27dbf4c4d6663b00bfc9d7fc099b7573b0b470a0e32e0a610f43dd795ae154b2decc54c34f7bfa3f07acdd2
data/README.md CHANGED
@@ -6,6 +6,5 @@ This project rocks and uses MIT-LICENSE.
6
6
 
7
7
  Add `gem opal-promise-patch` to your Gemfile
8
8
  Run `bundle install`
9
- Include `require 'utils/promise/promise_patch'` at the start of your main controller
10
9
  Done!
11
10
 
@@ -1,3 +1,4 @@
1
+ require 'opal'
1
2
  if RUBY_PLATFORM == 'opal'
2
3
  require 'promise'
3
4
  else
@@ -18,9 +19,3 @@ class Promise
18
19
  end
19
20
  end
20
21
  end
21
-
22
- class Object
23
- def to_promise
24
- Promise.new.resolve(self)
25
- end
26
- end
@@ -0,0 +1,3 @@
1
+ class Promise
2
+ VERSION = "0.0.1"
3
+ end
@@ -1,5 +1,7 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/opals/promise_patch/version', __FILE__)
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "utils/promise/version"
3
5
 
4
6
  # Describe your gem and declare its dependencies:
5
7
  Gem::Specification.new do |s|
@@ -16,5 +18,5 @@ Gem::Specification.new do |s|
16
18
  s.test_files = Dir["test/**/*"]
17
19
  s.require_paths = ['lib']
18
20
 
19
- s.add_runtime_dependency 'opal', '>= 0.7.0', '< 0.9.0'
21
+ s.add_runtime_dependency 'opal', '~> 0.7'
20
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-promise-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre1
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Penn Su
@@ -14,22 +14,16 @@ dependencies:
14
14
  name: opal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 0.9.0
19
+ version: '0.7'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.7.0
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 0.9.0
26
+ version: '0.7'
33
27
  description: ''
34
28
  email:
35
29
  - pennsu@gmail.com
@@ -38,16 +32,13 @@ extensions: []
38
32
  extra_rdoc_files: []
39
33
  files:
40
34
  - ".gitignore"
41
- - CHANGELOG.md
42
35
  - Gemfile
43
36
  - Gemfile.lock
44
37
  - MIT-LICENSE
45
38
  - README.md
46
39
  - Rakefile
47
- - TODOS
48
- - lib/opal-promise-patch.rb
49
- - lib/opals/promise_patch/promise_patch.rb
50
- - lib/opals/promise_patch/version.rb
40
+ - lib/utils/promise/promise_patch.rb
41
+ - lib/utils/promise/version.rb
51
42
  - opal-promise-patch.gemspec
52
43
  homepage: https://github.com/pencilcheck/opal-promise-patch
53
44
  licenses:
@@ -64,9 +55,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
55
  version: '0'
65
56
  required_rubygems_version: !ruby/object:Gem::Requirement
66
57
  requirements:
67
- - - ">"
58
+ - - ">="
68
59
  - !ruby/object:Gem::Version
69
- version: 1.3.1
60
+ version: '0'
70
61
  requirements: []
71
62
  rubyforge_project:
72
63
  rubygems_version: 2.4.5
@@ -1,7 +0,0 @@
1
- # Change Log
2
-
3
- ## 0.0.2
4
- - to_promise on Object to wrap any object in a promise
5
-
6
- ## 0.0.1
7
- - Able to chain methods on a promise instead of writing boiler code chaining then. e.g. Promise.new.resolve([1, 2, 3]).length <= returns a promise that resolves into the length of the array
data/TODOS DELETED
@@ -1,21 +0,0 @@
1
- * Fixing arguments passed in as Promises
2
- Example:
3
- ```
4
- begin
5
- a = store._items.fetch_first
6
- a._first_name + " " + a._last_name
7
- rescue => e
8
- ..
9
- end
10
- ```
11
-
12
- Example:
13
- ```
14
- begin
15
- a = store._items.fetch_first
16
- " " + a._last_name
17
- rescue => e
18
- ..
19
- end
20
- ```
21
- * Exceptions are swallowed
@@ -1 +0,0 @@
1
- require 'opals/promise_patch/promise_patch'
@@ -1,3 +0,0 @@
1
- class Promise
2
- VERSION = "0.0.1.pre1"
3
- end