gemspec 0.2.2 → 0.2.3

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: c7b58729cfe3b0b3eb246ef66fb9e6017240ce70
4
- data.tar.gz: 05cc1a3dff46221b6f24573eac4eb9cda6a56bf5
3
+ metadata.gz: 45f09f35ec76304c4367918f636ab5b78ce7905f
4
+ data.tar.gz: af8714894fa7384d6e88b9d7c215992ed2faef05
5
5
  SHA512:
6
- metadata.gz: 535ed98e9975149ad0e7bf1624f6c275e8d8baef1574d66ab2b1448bf356ab49a3eff3cddacaac691a2781196bcb1ce10846ffa99f248c2176344bec84dfb84f
7
- data.tar.gz: f4ae1879f58e6f67a2c6ecb4e6aa60fb65881369b959aedf042c429a0e59eca9f94f131c58b15bbf7ab95f5c46b1001bfe174fe629619def78d7ac89e363e78e
6
+ metadata.gz: 3cfb171a521cef0be1bb67d71fe2a5bcb3d23f05629e5aef90c2cdec794e09f87509b34724fe3620b7f0393629cd07efd8f35bc66924461f8f4c061166e59c73
7
+ data.tar.gz: db30dcd9b7188784efa3ac680647aac3bb5c6e3445a3dd1271e1bd46ba20ffea093f90ff8554f289efbeedb4aae3d589a9e3069ad6af9d09245c4347cc236705
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Gemspec
2
2
 
3
- Gemspec is a convention-over-configuration library for creating gems.
3
+ Gemspec is a convention-over-configuration library for creating DRY ruby gems that are easy to rename
4
+ and whose gemspec and scaffolded parts easy to reuse by simply copying them elsewhere.
4
5
 
5
6
  ## Gemspec::boilerplate
6
7
  The main functionality of the libary is the `Gemspec::boilerplate` method, which when called with a `Gem::Specification`
@@ -19,8 +20,23 @@ Additionally, it:
19
20
 
20
21
  \*The naming convetions it uses are those laid out in http://guides.rubygems.org/name-your-gem/.
21
22
 
23
+ Effectively, a single gemspec file file without TODO’s and FIXME’s that uses Gemspec.boilerplate is always a valid gemspec following commonn conventions.
24
+
25
+ ## Project templates
26
+ The second part of this gems functionality is in its static template library.
27
+
28
+ `gemspec-install_templates destination/`
29
+ will install it to a destination of your choice and from there you can simply add common functionality to your gem (test suites, rake tasks, etc.)
30
+ by simply copying it to your project directory.
31
+
32
+ The `bare/` template contains just a simple `gemspec.gemspec`, which makes a complete gem by itself.
33
+ (Try copying it in and running `ruby gemspec.gemspec` or `gem build gemspec.gemspec`x`).
34
+
35
+ The ‘init/’ template contains a basic `Gemfile`, `minitest` samples in `test/`, `VERSIONING.md` describing the
36
+ dual versioning scheme that `gemspec` uses, and `rakelib/` with `test.rake` and `license.rake`.
37
+ The latter creates and views licenses specified in the gemspec (no need to have them in your repo).
38
+
22
39
  ## Usage
23
40
 
24
41
  gem install gemspec
25
42
 
26
-
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+
4
+ if ARGV.size != 1 || !File.directory?(ARGV[0])
5
+ warn \
6
+ "
7
+ Usage: gemspec-install_templates where_to/
8
+ "
9
+ else
10
+ template_source = File.expand_path('../../share/gemspec/templates', `gem which gemspec`.chomp)
11
+ p template_source
12
+ system('rsync', '-aiv', template_source + '/', ARGV[0])
13
+ end
14
+
15
+
16
+
17
+
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  #####Must change
19
19
  s.summary = %q{Gemspec aims to streamline and DRY up the creation of ruby packages AKA gems}
20
- s.description = File.read('README.md')
20
+ s.description = File.open('README.md').gets('.')
21
21
  s.licenses = %w[MIT]
22
22
 
23
23
 
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Skocik
@@ -52,36 +52,15 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.4'
55
- description: |+
55
+ description: |-
56
56
  # Gemspec
57
57
 
58
- Gemspec is a convention-over-configuration library for creating gems.
59
-
60
- ## Gemspec::boilerplate
61
- The main functionality of the libary is the `Gemspec::boilerplate` method, which when called with a `Gem::Specification`
62
- as its argument, adds standard boilerplate to your gemspec.
63
-
64
- It assumes you're using `Git`, and it infers most of the gemspec boilerplate from:
65
-
66
- 1) the name\* of your gem, which defaults to the name of your project's directory
67
- 2) your git data
68
-
69
- Additionally, it:
70
-
71
- 1) `git init`s your project directory unless it's already been initialized
72
- 2) scaffolds out the files and directories your `lib` folder should contain based on your project's name,
73
- unless those files and directories already exist.
74
-
75
- \*The naming convetions it uses are those laid out in http://guides.rubygems.org/name-your-gem/.
76
-
77
- ## Usage
78
-
79
- gem install gemspec
80
-
81
-
58
+ Gemspec is a convention-over-configuration library for creating DRY ruby gems that are easy to rename
59
+ and whose gemspec and scaffolded parts easy to reuse by simply copying them elsewhere.
82
60
  email:
83
61
  - pskocik@gmail.com
84
- executables: []
62
+ executables:
63
+ - gemspec-install_templates
85
64
  extensions: []
86
65
  extra_rdoc_files: []
87
66
  files:
@@ -92,6 +71,7 @@ files:
92
71
  - VERSION
93
72
  - VERSIONING.md
94
73
  - VERSION_FOR_HUMANS
74
+ - bin/gemspec-install_templates
95
75
  - gemspec.gemspec
96
76
  - lib/gemspec.rb
97
77
  - lib/gemspec/HUMAN_VERSION
@@ -437,7 +417,7 @@ metadata:
437
417
  namespaced_path: gemspec
438
418
  constant_name: Gemspec
439
419
  human_version: |
440
- 0.1.1
420
+ 0.2.0
441
421
  post_install_message:
442
422
  rdoc_options: []
443
423
  require_paths: