wolfram 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
  s.add_development_dependency 'bacon', '>= 1.1.0'
18
18
  s.add_development_dependency 'bacon-rr'
19
19
  s.add_development_dependency 'bacon-bits'
20
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
21
- s.files += Dir.glob(['test/fixtures/*.xml']) + %w{.travis.yml CONTRIBUTING.md}
20
+ s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,md} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
21
+ s.files += Dir.glob(['test/fixtures/*.xml']) + %w{.travis.yml}
22
22
  s.extra_rdoc_files = ["README.md", "LICENSE.txt"]
23
23
  s.license = 'MIT'
24
24
  end
@@ -1,3 +1,6 @@
1
+ == 0.2.1
2
+ * Fix requery.fetch
3
+
1
4
  == 0.2.0
2
5
  * Add HashPresenter class
3
6
  * Update fixture
data/README.md CHANGED
@@ -3,7 +3,6 @@ Description
3
3
 
4
4
  Explore the vast world of computational knowledge available for free via Wolfram's v2 API.
5
5
 
6
-
7
6
  ### Install
8
7
 
9
8
  To install this gem:
@@ -12,7 +11,6 @@ To install this gem:
12
11
  gem install wolfram
13
12
  ```
14
13
 
15
-
16
14
  ### Setup
17
15
 
18
16
  You'll need a Wolfram Appid (api key) by [creating an account
@@ -31,7 +29,6 @@ If you want to explicitly set your appid in a script:
31
29
  Wolfram.appid = "YOURKEY"
32
30
  ```
33
31
 
34
-
35
32
  ### Usage
36
33
 
37
34
  Query away on the commandline!
@@ -53,18 +50,16 @@ Regular ruby usage:
53
50
  query = 'boston population'
54
51
  result = Wolfram.fetch(query)
55
52
  # to see the result as a hash of pods and assumptions:
56
- hash = HashPresenter.new(result).to_hash
53
+ hash = Wolfram::HashPresenter.new(result).to_hash
57
54
  ```
58
55
 
59
56
  For many more examples, [see here](http://www.wolframalpha.com/examples/).
60
57
 
61
-
62
58
  ## Credits
63
59
 
64
60
  * [Ian White](https://github.com/ianwhite) is the original author of this gem.
65
- * spaghetticode for HashPresenter
66
- * bdigital for a bug fix
67
-
61
+ * @spaghetticode for HashPresenter
62
+ * @bdigital, @emilesilvis for bug fixes
68
63
 
69
64
  ## Todo
70
65
 
@@ -53,7 +53,7 @@ module Wolfram
53
53
  end
54
54
 
55
55
  def requery
56
- Query.new(@query.input, @query.options.merge(:assumption => self))
56
+ Query.new(@query.input, @query.options.merge(:assumption => input))
57
57
  end
58
58
 
59
59
  def refetch
@@ -1,3 +1,3 @@
1
1
  module Wolfram
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolfram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-07 00:00:00.000000000 Z
13
+ date: 2013-02-20 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -117,16 +117,15 @@ files:
117
117
  - test/wolfram_test.rb
118
118
  - bin/wolfram
119
119
  - LICENSE.txt
120
- - CHANGELOG.rdoc
121
- - README.rdoc
120
+ - CHANGELOG.md
121
+ - CONTRIBUTING.md
122
+ - README.md
122
123
  - deps.rip
123
124
  - test/deps.rip
124
125
  - Rakefile
125
126
  - .gemspec
126
127
  - test/fixtures/boston.xml
127
128
  - .travis.yml
128
- - CONTRIBUTING.md
129
- - README.md
130
129
  homepage: http://github.com/cldwalker/wolfram
131
130
  licenses:
132
131
  - MIT
@@ -148,8 +147,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
147
  version: 1.3.6
149
148
  requirements: []
150
149
  rubyforge_project:
151
- rubygems_version: 1.8.24
150
+ rubygems_version: 1.8.19
152
151
  signing_key:
153
152
  specification_version: 3
154
153
  summary: Wolfram V2 API client
155
154
  test_files: []
155
+ has_rdoc:
@@ -1,50 +0,0 @@
1
- == Description
2
- Explore the vast world of computational knowledge available for free via Wolfram's v2 API.
3
-
4
- == Install
5
-
6
- To install this gem:
7
-
8
- gem install wolfram
9
-
10
- == Setup
11
-
12
- You'll need a Wolfram Appid (api key) by {creating an account
13
- here}[http://developer.wolframalpha.com/portal/apisignup.html] and
14
- then clicking on the 'Get an APPID' button.
15
-
16
- Once you have your own appid, set it in your shell, preferably in your ~/.bashrc:
17
-
18
- export WOLFRAM_APPID='YOURKEY'
19
-
20
- If you want to explicitly set your appid in a script:
21
-
22
- Wolfram.appid = "YOURKEY"
23
-
24
- == Usage
25
-
26
- Query away on the commandline!
27
-
28
- # Calculate distance and travel time between places
29
- $ wolfram from boston to new york
30
-
31
- # Solve an equation
32
- $ wolfram x^3 - 4x^2 + 6x - 24 = 0
33
-
34
- # Find words ending with able
35
- $ wolfram words ending with able
36
-
37
- For many more examples, {see here}[http://www.wolframalpha.com/examples/].
38
-
39
- == Credits
40
-
41
- * {Ian White}[https://github.com/ianwhite] is the original author of this gem.
42
- * bdigital for a bug fix
43
-
44
- == Contributing
45
- {See here}[http://tagaholic.me/contributing.html]
46
-
47
- == Todo
48
- * More tests!
49
- * A better inspect
50
- * Handle more api options including format