propose 0.0.2 → 1.0.0

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: d85782cc245209ea1652fdfab739c34c4ef26722
4
- data.tar.gz: 5b844f9c256d31e5afe1d0fb644908b59cba5df1
3
+ metadata.gz: 8f15e9660afb53cc6be7586bde53edf6bd5c64ad
4
+ data.tar.gz: fcf3ee3d5a1235979ba7184df8ad802205294763
5
5
  SHA512:
6
- metadata.gz: 57475acdf41eedf0797b0444d2a62f3ad6450327f7d1fdf71d197b246ef51901788b00ca6d97c79958d7f350034fe74a6e787f0735c553053e9e3cac64e0a88b
7
- data.tar.gz: 47a6772312b2703530f8c6e921d03d3ae4bc824149287663e00d7de8475fa6e18a625d0bd2db6d1018318655a34a5dc7d55672eea6c65651a72399656a42eeb5
6
+ metadata.gz: 637fb28214c23cf0f1eac3ed0ec809f2e95d7208c91ffd4427831b9adc7103cfcf83792f71cd40a8d0bd1eddd900d6a79f34986a024830eb889a28c633f69a15
7
+ data.tar.gz: e445cc519a0f6ed2c871beb9b369f5a90bca1b83e214e10ebc7c2a07598414f5c8c9d55bccf3592c389b58ea0357643bd718de1d33a2d2cce952df66acd07b35
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ Propose is released under the MIT license.
2
+
3
+ > Copyright (c) 2016 Shane da Silva. https://shane.io
4
+ >
5
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ > of this software and associated documentation files (the "Software"), to deal
7
+ > in the Software without restriction, including without limitation the rights
8
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ > copies of the Software, and to permit persons to whom the Software is
10
+ > furnished to do so, subject to the following conditions:
11
+ >
12
+ > The above copyright notice and this permission notice shall be included in
13
+ > all copies or substantial portions of the Software.
14
+ >
15
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ > SOFTWARE.
@@ -13,11 +13,9 @@ module Propose
13
13
  class << self
14
14
  def parse(string)
15
15
  tree = parser.parse(string)
16
- if tree
17
- tree.to_ast
18
- else
19
- raise ParseError, parser.failure_reason
20
- end
16
+ raise ParseError, parser.failure_reason unless tree
17
+
18
+ tree.to_ast
21
19
  end
22
20
 
23
21
  private
@@ -1,4 +1,4 @@
1
1
  # Specifies the gem version.
2
2
  module Propose
3
- VERSION = '0.0.2'
3
+ VERSION = '1.0.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -44,28 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.0
47
+ version: 1.6.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.0
55
- - !ruby/object:Gem::Dependency
56
- name: overcommit
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 0.23.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: 0.23.0
54
+ version: 1.6.4
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,34 +80,6 @@ dependencies:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
82
  version: '1.0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 0.29.1
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 0.29.1
111
- - !ruby/object:Gem::Dependency
112
- name: travis
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.7'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.7'
125
83
  description: Create, manipulate, and verify propositional logic sentences
126
84
  email: shane@dasilva.io
127
85
  executables:
@@ -129,6 +87,7 @@ executables:
129
87
  extensions: []
130
88
  extra_rdoc_files: []
131
89
  files:
90
+ - LICENSE.md
132
91
  - bin/propose
133
92
  - grammar/propositional_logic.treetop
134
93
  - lib/propose.rb
@@ -169,8 +128,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
128
  version: '0'
170
129
  requirements: []
171
130
  rubyforge_project:
172
- rubygems_version: 2.2.2
131
+ rubygems_version: 2.4.5.1
173
132
  signing_key:
174
133
  specification_version: 4
175
134
  summary: Propositional logic sentence playground
176
135
  test_files: []
136
+ has_rdoc: