nyc_today 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67fa24c954829fb221cb6b3309b979040acd8205
4
- data.tar.gz: a0daf92f8ba3527ad55b4f59affcb5d3fde9aaef
3
+ metadata.gz: 52a363e2107e637b551d30dcc020d08389f1a6b2
4
+ data.tar.gz: 95fcfded9732c57318ccf242366f4087d1131b48
5
5
  SHA512:
6
- metadata.gz: cfa4130fbde76be641d11922d524bc71df90f18958d473976f1999938654f96e1df8c07a69fdfd35c2834ef4076435d3facfb8818368251a9726c73e28e5c818
7
- data.tar.gz: d492e3ddf56d37c2986d1a4743835b478962b78c2bcca68a33c1730446dda8fdad60e1b10fb2a3bf9a6603550f97b402a98c6590e5f2e7d62c288008f7f33fc3
6
+ metadata.gz: 687e341575ff252347b52689989ca0cbe55407072681004851219eba137fdde2c81548f7d3e1f12e2374daa6cc2c2c6253577109232ef296e8ef727bb2ad4b8c
7
+ data.tar.gz: e5e10d293f6781b858731b1dd3d27b47f3fcd626238bd93d2fdc564ee11923182233909524c87f088fdd442d065a3ca129604596b7fb979b918e89b2fabc7521
data/README.md CHANGED
@@ -4,6 +4,8 @@ NYC Today is a Ruby Gem that provides a CLI for navigating events from [Brooklyn
4
4
 
5
5
  ## Installation
6
6
 
7
+ **This gem requires Ruby version 2.3.0 or higher**
8
+
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
@@ -20,9 +22,96 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- To use NYC Today after installing, type `nyc-today` in the command line and follow the on-screen prompts when the gem launches.
25
+ To use NYC Today after installing, type `nyc_today` in the command line and follow the on-screen prompts when the gem launches.
26
+
27
+ Getting errors? Add an [issue](https://github.com/vicision/nyc-today-cli-app/issues). If it's one of the following, try the suggestions below:
28
+
29
+ * If your error looks like this one, try running `gem install bundler` to update your Bundler installation. You may then also need to reinstall the `nyc_today` gem:
30
+
31
+ ```
32
+ /Users/your_name/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
33
+ from /Users/your_name/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
34
+ from /Users/your_name/.rvm/gems/ruby-2.4.0@global/gems/nyc_today-0.1.3/bin/nyc_today:3:in `<top (required)>'
35
+ from /Users/your_name/.rvm/rubies/ruby-2.4.0/bin/nyc_today:22:in `load'
36
+ from /Users/your_name/.rvm/rubies/ruby-2.4.0/bin/nyc_today:22:in `<main>'
37
+ from /Users/your_name/.rvm/gems/ruby-2.4.0@global/bin/ruby_executable_hooks:15:in `eval'
38
+ from /Users/your_name/.rvm/gems/ruby-2.4.0@global/bin/ruby_executable_hooks:15:in `<main>'
39
+ ```
40
+
41
+
42
+ * If your error looks like this one, you need to upgrade Ruby to version 2.3.0 or later:
43
+
44
+ ```
45
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today.rb:5:in `require_relative': /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:14: syntax error, unexpected <<, expecting keyword_end (SyntaxError)
46
+ <<~HEREDOC
47
+ ^
48
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:16: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
49
+ ...lcome to NYC Today-- your guide to today's events in and aro...
50
+ ... ^
51
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:18: syntax error, unexpected tIDENTIFIER, expecting keyword_end
52
+ Please wait a few seconds while I gather today's events.
53
+ ^
54
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:20: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
55
+ For the best experience, maximize the terminal.
56
+ ^
57
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:35: syntax error, unexpected <<
58
+ <<~HEREDOC
59
+ ^
60
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:38: syntax error, unexpected *
61
+ * Enter a number for the type of event you would like to see.
62
+ ^
63
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:38: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
64
+ * Enter a number for the type of event you would like to see.
65
+ ^
66
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:39: syntax error, unexpected tIDENTIFIER, expecting keyword_end
67
+ * Type 'exit' to leave the program.
68
+ ^
69
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:129: syntax error, unexpected <<
70
+ <<~HEREDOC
71
+ ^
72
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:131: syntax error, unexpected *
73
+ * Enter the number of any event you'd like to know more about
74
+ ^
75
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:133: syntax error, unexpected tIDENTIFIER, expecting keyword_end
76
+ * Enter 'menu' to return to the main menu
77
+ ^
78
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:134: syntax error, unexpected tIDENTIFIER, expecting keyword_end
79
+ * Enter 'back' to go back or 'exit' to leave the program
80
+ ^
81
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:134: syntax error, unexpected tIDENTIFIER, expecting keyword_end
82
+ * Enter 'back' to go back or 'exit' to leave the program
83
+ ^
84
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:146: syntax error, unexpected tIDENTIFIER, expecting keyword_end
85
+ puts "\nI'm sorry, there is no additiona...
86
+ ^
87
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:146: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
88
+ ... puts "\nI'm sorry, there is no additional information ab...
89
+ ... ^
90
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:146: syntax error, unexpected tSTRING_BEG, expecting '('
91
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:152: syntax error, unexpected $undefined, expecting keyword_end
92
+ paragraphs = text.split("\n")
93
+ ^
94
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:154: syntax error, unexpected $undefined, expecting keyword_end
95
+ para.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
96
+ ^
97
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:162: syntax error, unexpected tIDENTIFIER, expecting keyword_end
98
+ if input == "exit"
99
+ ^
100
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:165: syntax error, unexpected tIDENTIFIER, expecting keyword_end
101
+ system "clear"
102
+ ^
103
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:180: syntax error, unexpected $undefined, expecting keyword_end
104
+ puts "\nYou've reached the end of th...
105
+ ^
106
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:180: unterminated string meets end of file
107
+ /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today/cli.rb:180: syntax error, unexpected end-of-input, expecting keyword_end
108
+ from /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/lib/nyc_today.rb:5:in `<top (required)>'
109
+ from /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/bin/nyc_today:4:in `require_relative'
110
+ from /Library/Ruby/Gems/2.0.0/gems/nyc_today-0.1.2/bin/nyc_today:4:in `<top (required)>'
111
+ from /usr/local/bin/nyc_today:23:in `load'
112
+ from /usr/local/bin/nyc_today:23:in `<main>'
113
+ ```
24
114
 
25
- If you're having trouble launching the gem, try entering `gem install bundler` to update your Bundler installation.
26
115
 
27
116
  ## Development
28
117
 
@@ -1,3 +1,3 @@
1
1
  module NycToday
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/vicision/nyc-today-cli-app"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.required_ruby_version = '>= 2.3.0'
18
+
17
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
20
  f.match(%r{^(test|spec|features)/})
19
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyc_today
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duncan McLachlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-26 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '0'
123
+ version: 2.3.0
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="