sj_ignore 0.0.1 → 0.2

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: bdfbff1b6214d0d84e372c5b4c995abc65c31f15
4
- data.tar.gz: 945b2a72bf68be2edde2ca5e4dcbb750c3a4063b
3
+ metadata.gz: 220fa5ef6077d35fca6abcf2bec5dda85e9241c3
4
+ data.tar.gz: 074b5c9c36226c99efad84865be3040a1e4bf728
5
5
  SHA512:
6
- metadata.gz: 310236b2f6a7a27f8b3e6b75ed4f5700cad94692f40e4e14548fc155d6641091cc3594bfc4bf4b66e63bff122dfdf1d6ab140794480fcb1b9b635ad513f379e8
7
- data.tar.gz: ccdd8a8c32b8670d7eb977cc8ab548d88f1c9e740559e19608cbab32e41b363c6d310174fe0c6c61da54be334a7a4e415e8c430c84389118577b3684428f5f15
6
+ metadata.gz: 766d9af32827359c3daf8d434c2bed5b4dfca54a3ba1d16a5fb9cca2872456f9a9529d9325be6752fd9f8d5e782c089a350e71a76bf95493529663e8fe7fe6a6
7
+ data.tar.gz: 8ad704e2eee6c3ff0015e05b733b1e0f88d404deae1d0686eda4833e46907333645d663d0643d24376477bbcead0a3876e029f4fdb67606c4ebaeaf992f2f367
data/Gemfile.lock ADDED
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ sj_ignore (0.2)
5
+ github_api (~> 0.12.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.3.8)
11
+ descendants_tracker (0.0.4)
12
+ thread_safe (~> 0.3, >= 0.3.1)
13
+ faraday (0.9.1)
14
+ multipart-post (>= 1.2, < 3)
15
+ github_api (0.12.4)
16
+ addressable (~> 2.3)
17
+ descendants_tracker (~> 0.0.4)
18
+ faraday (~> 0.8, < 0.10)
19
+ hashie (>= 3.4)
20
+ multi_json (>= 1.7.5, < 2.0)
21
+ nokogiri (~> 1.6.6)
22
+ oauth2
23
+ hashie (3.4.2)
24
+ jwt (1.5.1)
25
+ mini_portile (0.6.2)
26
+ multi_json (1.11.2)
27
+ multi_xml (0.5.5)
28
+ multipart-post (2.0.0)
29
+ nokogiri (1.6.6.2)
30
+ mini_portile (~> 0.6.0)
31
+ oauth2 (1.0.0)
32
+ faraday (>= 0.8, < 0.10)
33
+ jwt (~> 1.0)
34
+ multi_json (~> 1.3)
35
+ multi_xml (~> 0.5)
36
+ rack (~> 1.2)
37
+ rack (1.6.4)
38
+ rake (10.4.2)
39
+ thread_safe (0.3.5)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ bundler (~> 1.7)
46
+ rake (~> 10.0)
47
+ sj_ignore!
data/README.md CHANGED
@@ -2,11 +2,24 @@
2
2
 
3
3
  This small utility makes generating a .gitignore file for a new project as
4
4
  painless as possible when dealing with multiple platforms or languages that you
5
- require .gitignore info for.
5
+ require .gitignore info for. Currently the program uses
6
+ [Github's gitignore](https://github.com/github/gitignore) repository to provide
7
+ a wide list of established .gitignore files.
8
+
9
+ ## Installation
10
+
11
+ gem install sj_ignore
6
12
 
7
13
  ## Example
8
14
 
9
- sj-ignore ruby vim osx > .gitignore
15
+ To use this by pulling down a local copy of the github/gitignore repository
16
+ into the gem's installed lib/ directory:
17
+
18
+ sj_ignore ruby vim osx > .gitignore
19
+
20
+ To use GitHub's API to fetch files remotely:
21
+
22
+ sj_ignore -a ruby vim osx > .gitignore
10
23
 
11
24
  ## TODO
12
25
 
data/lib/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module SjIgnore
2
2
  module Meta
3
3
  NAME = 'sj_ignore'
4
- VERSION = '0.0.1'
4
+ VERSION = '0.2'
5
5
  end
6
6
  end
data/lib/sj_ignore.rb CHANGED
@@ -45,8 +45,8 @@ module SjIgnore
45
45
 
46
46
  def list
47
47
  # Print out a list of all available .gitignore files
48
- @contents.each do |path, ref|
49
- p path
48
+ @contents.keys.sort.each do |path, ref|
49
+ print path + "\n"
50
50
  end
51
51
  end
52
52
 
@@ -1,3 +1,3 @@
1
1
  module SjIgnore
2
- VERSION = "0.0.1"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sj_ignore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - sjdev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.12.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.12.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.7'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  description: sj-ignore uses github's gitignore repository to make it easy to list
@@ -61,8 +61,9 @@ executables:
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - Gemfile
66
+ - Gemfile.lock
66
67
  - LICENSE.txt
67
68
  - README.md
68
69
  - Rakefile
@@ -83,17 +84,17 @@ require_paths:
83
84
  - lib
84
85
  required_ruby_version: !ruby/object:Gem::Requirement
85
86
  requirements:
86
- - - '>='
87
+ - - ">="
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0'
89
90
  required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  requirements:
91
- - - '>='
92
+ - - ">="
92
93
  - !ruby/object:Gem::Version
93
94
  version: '0'
94
95
  requirements: []
95
96
  rubyforge_project:
96
- rubygems_version: 2.0.14
97
+ rubygems_version: 2.4.5
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: Easy command line utility to create a multi-faceted .gitignore file