vimgolf-finder 0.1.3 → 0.1.4

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: 8659e23e755193bed36632e596e5b6350135ebc5
4
- data.tar.gz: bbab02be860c18de48c65af7404887e43c02771c
3
+ metadata.gz: af9d46c0aea441ce594d5d0285278dad74f9835d
4
+ data.tar.gz: 426985ee72dd735fdd434c400b352e5aa2e1fdd5
5
5
  SHA512:
6
- metadata.gz: d2f6ec009057b8e220acbac5a21df72655c84bf384ba1d6285bd9bf376531c0644ee90cde27c8289f363836d2a978a1b84e0dc0f540a0f6fdbb7c3311f31a4e8
7
- data.tar.gz: 5b158cbc103f23ab3c0ea198c751e5b161387b147d2d3d7752e2757a04396c9c57cbda40fa6518f93ba5b36fa08be3721a2dd87918588912712d6933d333b93c
6
+ metadata.gz: 16d3c3f2db7c206b0367fdb1fd4ac3fe58c25eaf26c522221d8f04fc544958e64b73ca4dcc53a927c845e65c6d63f2da1b814d75ff42da159ea78e56b1b9994c
7
+ data.tar.gz: c8b60b2447eeac286d36de6c318b07e5db635dad22af9fa7f05f5289db5ae5b07c1af9243328ac2c2d7d3dc1c9adad92d579fd76940b1f2aaf76534fa7391fd3
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.0.0"
4
+ - "2.2.0"
5
+ - "2.2.2"
data/README.md CHANGED
@@ -1,2 +1,129 @@
1
- # vimgolf-finder
2
- Simple VimGolf challenge finder.
1
+ # VimGolf Finder 🔎
2
+ [![Build Status](https://travis-ci.org/kciter/vimgolf-finder.svg?branch=master)](https://travis-ci.org/kciter/vimgolf-finder)
3
+
4
+ Simple VimGolf challenge finder. It just toy project for me! :smile:
5
+
6
+ ## Preview
7
+ [![asciicast](https://asciinema.org/a/1whcqi8pjldxi767iiknqxeil.png)](https://asciinema.org/a/1whcqi8pjldxi767iiknqxeil)
8
+
9
+ ## Installation
10
+ Add this line to your application's Gemfile:
11
+ ```
12
+ $ gem install vimgolf-finder
13
+ ```
14
+
15
+ ## Usage
16
+ ```
17
+ Commands:
18
+ vimgolf-finder help [COMMAND] # Describe available commands or one specific command
19
+ vimgolf-finder list # Show VimGolf challenges
20
+ vimgolf-finder random # Pick one at random from VimGolf challenges
21
+ ```
22
+
23
+ ### List 🔎
24
+ Show VimGolf challenges from 'http://vimgolf.com/'.
25
+ ```
26
+ $ vimgolf-finder list
27
+ 1. Simple text editing with Vim - 8304 entries (4d1a34ccfa85f32065000004)
28
+ 2. Simple, Practical, and Common - 7945 entries (55b18bbea9c2c30d04000001)
29
+ 3. Words in parens - 7806 entries (5192f96ad8df110002000002)
30
+ 4. A HAPPY NEW YEAR 2014 ! - 7022 entries (52c3cb0d9b8634000200000e)
31
+ 5. Just the middle - 5262 entries (54862fbb3f90ac0002904cf5)
32
+ 6. I forgot quotes - 5034 entries (5462e3f41198b80002512673)
33
+ 7. Reformat/Refactor a Golfer Class - 4878 entries (4d1a1c36567bac34a9000002)
34
+ 8. switch variable - 3431 entries (4f0720c8f037090001000007)
35
+ 9. Search and Replace 0 - 3234 entries (4d1a8bf2b8cb3409320002c4)
36
+ 10. Vice versa - 2908 entries (55bcdc3ef4219f456102374f)
37
+ Choose challenge number. 2
38
+
39
+ Open your web browser? (y/n) y
40
+ Do you want to play? (y/n) y
41
+
42
+ # Playing VimGolf...
43
+
44
+ Thanks for playing!
45
+ Solves? (y/n) y
46
+ [✓] Checked!
47
+ ```
48
+
49
+ #### Options
50
+ ```
51
+ Options:
52
+ o, [--order=ORDER]
53
+ # Default: entries
54
+ d, [--desc], [--no-desc]
55
+ # Default: true
56
+ l, [--limit=LIMIT]
57
+ # Default: 10
58
+ p, [--page=PAGE]
59
+ # Default: 1
60
+ ```
61
+
62
+ ### Random 🔎
63
+ Pick one at random from VimGolf challenges
64
+ ```
65
+ $ vimgolf-finder random
66
+ 1. C to VimDict - 38 entries (54a94976f4048c00026d8ed6)
67
+
68
+ Open your web browser? (y/n) n
69
+ Waiting...
70
+ C to VimDict
71
+ Convert a C data structure to a Vimscript dictionary.
72
+ --------------------------------------------------
73
+ Start File
74
+ { "Return", '\n', },
75
+ { "ampersand", '&', },
76
+ { "apostrophe", '\'', },
77
+ { "asciicircum", '^', },
78
+ { "asciitilde", '~', },
79
+ { "asterisk", '*', },
80
+ { "at", '@', },
81
+ { "backslash", '\\', },
82
+ --------------------------------------------------
83
+ End File
84
+ {
85
+ \ "\n" : 'Return',
86
+ \ "&" : 'ampersand',
87
+ \ "\'" : 'apostrophe',
88
+ \ "^" : 'asciicircum',
89
+ \ "~" : 'asciitilde',
90
+ \ "*" : 'asterisk',
91
+ \ "@" : 'at',
92
+ \ "\\" : 'backslash',
93
+ \}
94
+ --------------------------------------------------
95
+ Do you want to play? (y/n) y
96
+
97
+ # Playing VimGolf...
98
+
99
+ Thanks for playing!
100
+ Solves? (y/n) n
101
+ $
102
+ ```
103
+
104
+ ## TODO
105
+ * [ ] Unit Testing
106
+ * [ ] Refactoring
107
+
108
+ ## License
109
+ The MIT License (MIT)
110
+
111
+ Copyright (c) 2016 Lee Sun-Hyoup
112
+
113
+ Permission is hereby granted, free of charge, to any person obtaining a copy
114
+ of this software and associated documentation files (the "Software"), to deal
115
+ in the Software without restriction, including without limitation the rights
116
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
117
+ copies of the Software, and to permit persons to whom the Software is
118
+ furnished to do so, subject to the following conditions:
119
+
120
+ The above copyright notice and this permission notice shall be included in all
121
+ copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
+ SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ task :default => :spec
7
+ RSpec::Core::RakeTask.new
@@ -1,3 +1,3 @@
1
1
  module VimGolfFinder
2
- VERSION = '0.1.3'
3
- end
2
+ VERSION = '0.1.4'
3
+ end
@@ -0,0 +1,5 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ RSpec.configure do |config|
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe VimGolfFinder do
4
+ it 'has a version' do
5
+ expect(VimGolfFinder::VERSION).to_not be nil
6
+ end
7
+ end
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'thor', '~> 0.19.1'
22
22
  s.add_dependency 'launchy', '~> 2.0'
23
23
 
24
- s.add_development_dependency 'bundler', '~> 0'
25
- s.add_development_dependency 'rake', '~> 0'
26
- s.add_development_dependency 'rspec', '~> 0'
27
- end
24
+ s.add_development_dependency 'bundler'
25
+ s.add_development_dependency 'rake'
26
+ s.add_development_dependency 'rspec'
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimgolf-finder
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
  - Lee Sun-Hyoup
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -56,42 +56,42 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Simple VimGolf challenge finder.
@@ -103,9 +103,12 @@ extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
105
  - ".gitignore"
106
+ - ".rspec"
107
+ - ".travis.yml"
106
108
  - Gemfile
107
109
  - LICENSE
108
110
  - README.md
111
+ - Rakefile
109
112
  - bin/vimgolf-finder
110
113
  - lib/vimgolf_finder.rb
111
114
  - lib/vimgolf_finder/challenge.rb
@@ -113,6 +116,8 @@ files:
113
116
  - lib/vimgolf_finder/parser.rb
114
117
  - lib/vimgolf_finder/ui.rb
115
118
  - lib/vimgolf_finder/version.rb
119
+ - spec/spec_helper.rb
120
+ - spec/version_spec.rb
116
121
  - vimgolf-finder.gemspec
117
122
  homepage: https://github.com/kciter/vimgolf-finder
118
123
  licenses: