getbox 1.0.0 → 1.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: e1a9cc1b6bbd7c221ce7345ce4f8acbf0b2fac76
4
- data.tar.gz: bcb4b025d79e12a75d48b026931ee376fbf70ebb
3
+ metadata.gz: 25f47dd3cc375b639efa1b2bfc48fe6600d22741
4
+ data.tar.gz: c3dd6e30d4c8f28b0afa241e63c7581a61c09aec
5
5
  SHA512:
6
- metadata.gz: 962860de3a40c78f655f9d46b89ec7e760ff65f12f59a43d4705c660913691ba19492d28ffb37ed2ab0569bcb99c6827c55332c852e839604c2417444c68560f
7
- data.tar.gz: cb9dd7b696b568b0e4b6fa93b1bfab8b1f7ebede849ed786b2aa305293f9b93beece63c61a46b0f2ec491c36db1a9040a1759c023d694a91b07cb8115c22378b
6
+ metadata.gz: 3a9db1b138940055285c111da95ea52b3518cb808abf9af071254f081828d826489b970b336f0e573f4adb35ecee58df470ed00464e584951e119ed7c3cedc94
7
+ data.tar.gz: 5250607e6c30ebf699e2b8e255baa71e78e6c63538704a1a0f4046ea2a4df4f4eb74ba34488174b4d13040debcb68bc9db01409ebf34d912a2a76ee625f0efc0
data/README.md CHANGED
@@ -2,8 +2,24 @@
2
2
 
3
3
  ## Installation
4
4
 
5
- getbox requires the [edge version](https://github.com/thoughtbot/capybara-webkit) of capybara-webkit. It's in the Gemfile, but not supported by the `.gemspec`. Use Bundler.
5
+ Install as a gem:
6
+
7
+ gem install gembox
6
8
 
7
9
  ## Usage
8
10
 
9
- After checking out the repo, run `bundle` to install dependencies. Then, run `exe/getbox` for an interactive prompt that will take you through exporting your gists.
11
+ The gem installs a global `gembox` executable, which will guide you through exporting your gists. Sometimes it takes a minute.
12
+
13
+ ## API
14
+
15
+ ### method to enter an interactive prompt and save gists to a file as JSON:
16
+
17
+ Getbox::prompt
18
+
19
+ ### methods to return an array of gists:
20
+
21
+ Getbox::getGistsFromSite(username, password)
22
+
23
+ Getbox::getGistsFromFile(location_of_html_file)
24
+
25
+ Getbox::getGistsFromHtml(html_string)
@@ -66,7 +66,7 @@ module Getbox
66
66
 
67
67
  description = gist.css('div.gist-description').inner_text.strip
68
68
  description = nil if description == 'No Description'
69
- data[:description] = description
69
+ data[:description] = description if description
70
70
 
71
71
  labels = []
72
72
  gist.css('span.gist-label').each {|label| labels.push label.inner_text}
@@ -1,3 +1,3 @@
1
1
  module Getbox
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Monks