fancy_version 0.0.1 → 0.0.2

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: 8fe7aae9e1a00fbce98e2798f2ecedf382d262d7
4
- data.tar.gz: 6902f361025cdd72f61847606d5814b296132b48
3
+ metadata.gz: 03936597605c2c155ff6a183f7ece32b8d923e12
4
+ data.tar.gz: 32f79fcfd9f2d4e905d3427c1e07a0c77ed898f8
5
5
  SHA512:
6
- metadata.gz: 8b3ca3b996b8e17586942a43a8f1f3bfc5d08e962ffdda6996c13c3ce252ecafe2fd1143c7ac67e1d57e22adb932a4c7ba35ffe61bd7a55b9ddaff28e821eed7
7
- data.tar.gz: 368f973e0f0aa3acd408d3a4b37924b8fd947793e4d89f6ab6e4a1408285c07ccc3654c4e2988907ae517546c8e1fa20ffd1ecc140b5056a975a242fa43cd1e9
6
+ metadata.gz: 7ceece98375284ea452e690d5aa092bd47db7d0ad97d6c79ffde8ffd379dcf9f88e9fa668657e47e0e7f3ce47d01ae51782070b87b9ae5c7d850310c34358720
7
+ data.tar.gz: f4a5d02097331bd4679b5c3dc7b1fcfedbac074813317420b659ef0d6e89c7b62cf96a7dcdba7b3487d1e9b4c02991bbe2a8040d3abf0fb4a5e2c03b77f105be
data/README.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # FancyVersion
2
2
 
3
- An attempt to add style to your application version.
3
+ An attempt to add style to your application's version.
4
+
5
+ ## Idea
6
+
7
+ Alongside with the standard *major.minor.revision* format, generate a codename that will reflect the version. Like Ubuntu releases, each having a corresponding codename (Natty Narwhal, heh?).
8
+
9
+ For example, let's take the standard version string apart:
10
+
11
+ * **major version** — this changes rarely and a *noun* represents it well. After all, another major release of a software project is a completely different *being*.
12
+ * **minor version** — this is a variation of a major release and could serve as indication of its maturity, so let's go with an adjective describing age, i.e. "newborn", "young", "adolescent", "adult", "elderly" etc.
13
+ * **revision number** — this is a variation of a variation and could represent anything depending on the development/deployment process. For the example here, let's go with another adjective, like quality, i.e. "silly", "grumpy", "horrible".
14
+
15
+ So, according to this scheme, version number `1.2.3` may be translated to something like 'Ape'.'Young'.'Horrible', or according to English grammar: `Horrible Young Ape`. Cool, huh?
16
+
17
+ Another good idea is to use words starting with 'A' to represent number 1, 'B' - number 2 and so on. That's completely unnecessary, but adds some more coolness in my humble opinion.
18
+
4
19
 
5
20
  ## Installation
6
21
 
@@ -18,9 +33,22 @@ Or install it yourself as:
18
33
 
19
34
  ## Usage
20
35
 
21
- This goes into your `
36
+ This usually goes into your `lib/my_app_name/version.rb`:
37
+
38
+ ```
39
+ require "fancy_version"
40
+
41
+ module MyAppName
42
+ VERSION = "1.2.3"
43
+ VERSION_CODENAME = FancyVersion.codename( VERSION ) # => "Horrible Young Ape"
44
+ end
45
+ ```
46
+
47
+ ## TODO:
22
48
 
23
- TODO: Write usage instructions here
49
+ - write comprehensive docs
50
+ - add complete dictionary (or dictionaries)
51
+ - provide methods/options to deal with versions starting with 0 (vs 1)
24
52
 
25
53
  ## Contributing
26
54
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["alex@kukushk.in"]
11
11
  spec.description = %q{Generates a fancy codename reflecting your application's version}
12
12
  spec.summary = %q{Generates a fancy codename reflecting your application's version}
13
- spec.homepage = ""
13
+ spec.homepage = "http://github.com/kukushkin/fancy_version"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,6 +1,6 @@
1
1
  require 'fancy_version/codename'
2
2
 
3
3
  module FancyVersion
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  VERSION_CODENAME = FancyVersion.codename( VERSION )
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancy_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kukushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2013-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,7 +54,7 @@ files:
54
54
  - lib/fancy_version.rb
55
55
  - lib/fancy_version/codename.rb
56
56
  - lib/fancy_version/version.rb
57
- homepage: ''
57
+ homepage: http://github.com/kukushkin/fancy_version
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}