artii 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,3 +42,47 @@
42
42
  === 1.0.3 / 2012-01-04
43
43
 
44
44
  * Updates for Ruby 1.9 compatibility.
45
+
46
+ * Regenerate gemspec for version 1.0.3 (Mike Tierney)
47
+ * Version bump to 1.0.3 (Mike Tierney)
48
+ * Update the history file. (Mike Tierney)
49
+ * Code cleanup. (Mike Tierney)
50
+ * Update the Rakefile, add Gemfiles and .rvmrc, .rspec (Mike Tierney)
51
+ * Merge pull request #1 from haus/update_for_ruby19_compat (Mike Tierney)
52
+
53
+ === 2.0.0 / 2012-05-04
54
+ * Split the CLI code and the core code in to separate locations, making integrating artii in to applications much easier (thanks Colin Mitchell <@muffinista>)
55
+
56
+ * Update README TODO list. (Mike Tierney)
57
+ * Version 2.0.0 Gemfile bump. (Mike Tierney)
58
+ * Regenerate gemspec for version 2.0.0 (Mike Tierney)
59
+ * Version bump to 2.0.0 (Mike Tierney)
60
+ * Update README to reflect new changes. (Mike Tierney)
61
+ * Fix failing CLI specs. (Mike Tierney)
62
+ * Fix CLI specs to load the CLI class. (Mike Tierney)
63
+ * Upgrade the Bundler requirement. (Mike Tierney)
64
+ * Merge pull request #2 from muffinista/master (Mike Tierney)
65
+ * split Base into CLI and Base so that Artii can be used outside of the command-line script (Colin Mitchell)
66
+ * split Base into CLI and Base so that Artii can be used outside of the command-line script (Colin Mitchell)
67
+ * split Base into CLI and Base so that Artii can be used outside of the command-line app (Colin Mitchell)
68
+
69
+ === 2.0.1 / 2012-05-05
70
+ * Bug fixes
71
+
72
+ * Regenerate gemspec for version 2.0.1 (Mike Tierney)
73
+ * Version bump to 2.0.1 (Mike Tierney)
74
+ * Don't require artii to install artii. Fix #3. (Mike Tierney)
75
+
76
+ === 2.0.2 / 2012-09-05
77
+
78
+ * Update dependencies
79
+
80
+ * Update gem dependencies, bump patch version. (Mike Tierney)
81
+ * Version bump to 2.0.2 (Mike Tierney)
82
+
83
+ === 2.0.3 / 2012-09-05
84
+
85
+ * Add '-v' CLI option to print out the current Gem version
86
+
87
+ * Add CLI support for `-v` and `--version` flags. (Mike Tierney)
88
+ * Lots of updates to the History.txt file (Mike Tierney)
@@ -51,7 +51,6 @@ None
51
51
 
52
52
  == TODO
53
53
 
54
- - CLI should support "-v" or "--version" (or both) option to print out currently active Artii version
55
54
  - Allow integrated objects to accept a print out a pre-defined text value
56
55
  - Ability to load non *.flf files (fonts are available, .flc file-types seem to be an issue right now)
57
56
  - Ability to set custom configurations, so you don't have to constantly set the options (like font) unless you want to
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "artii"
8
- s.version = "2.0.2"
8
+ s.version = "2.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Tierney"]
@@ -69,5 +69,9 @@ module Artii
69
69
 
70
70
  font_faces
71
71
  end
72
+
73
+ def version
74
+ Gem::Specification::load('artii.gemspec').version.to_s
75
+ end
72
76
  end
73
77
  end
@@ -19,6 +19,10 @@ module Artii
19
19
  @action = :list_all_fonts
20
20
  end
21
21
 
22
+ opts.on('-v', '--version', 'Displays current version number') do |version|
23
+ @action = :version
24
+ end
25
+
22
26
  opts.on_tail("-h", "--help", "Show this message") do
23
27
  puts opts
24
28
  exit
@@ -71,6 +71,20 @@ describe Artii::CLI do
71
71
  end
72
72
  end
73
73
 
74
+ describe "version" do
75
+ it "should output the version" do
76
+ gemspec = Gem::Specification::load 'artii.gemspec'
77
+ version = gemspec.version.to_s
78
+
79
+ a1 = Artii::CLI.new '-v'
80
+ a1.output.should_not be_empty
81
+ a1.output.should == version
82
+
83
+ a2 = Artii::CLI.new '--version'
84
+ a2.output.should_not be_empty
85
+ a2.output.should == version
86
+ end
87
+ end
74
88
  describe "#asciify" do
75
89
  it "should produce an output" do
76
90
  a = Artii::CLI.new 'hello world'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artii
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -789,7 +789,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
789
789
  version: '0'
790
790
  segments:
791
791
  - 0
792
- hash: -1543981081859473156
792
+ hash: -4057458999752423743
793
793
  required_rubygems_version: !ruby/object:Gem::Requirement
794
794
  none: false
795
795
  requirements: