gk-application 0.0.1 → 0.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.
Files changed (4) hide show
  1. data/README.md +2 -0
  2. data/lib/gk-application.rb +9 -9
  3. metadata +41 -33
  4. checksums.yaml +0 -7
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Gem: gk-application
2
2
  ===================
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/gk-application.svg)](http://badge.fury.io/rb/gk-application)
5
+
4
6
  A simple framework for creating applications in Ruby
5
7
  ----------------------------------------------------
6
8
 
@@ -4,19 +4,19 @@
4
4
  # A simple framework for creating applications in Ruby
5
5
  #
6
6
  # Copyright 2014 Greg M. Krsak (greg.krsak@gmail.com)
7
- #
7
+ #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
9
9
  # you may not use this file except in compliance with the License.
10
10
  # You may obtain a copy of the License at
11
- #
11
+ #
12
12
  # http://www.apache.org/licenses/LICENSE-2.0
13
- #
13
+ #
14
14
  # Unless required by applicable law or agreed to in writing, software
15
15
  # distributed under the License is distributed on an "AS IS" BASIS,
16
16
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
17
  # See the License for the specific language governing permissions and
18
18
  # limitations under the License.
19
- #
19
+ #
20
20
 
21
21
  require 'fileutils'
22
22
 
@@ -64,11 +64,11 @@ class Application
64
64
  # This is run once every time an Application instance is created
65
65
  def initialize
66
66
  # Initialize event handlers
67
- @on_starting = Proc.new do
68
- state = :running
67
+ @on_starting = Proc.new do
68
+ state = :running
69
69
  end
70
- @on_running = Proc.new do
71
- state = :stopping
70
+ @on_running = Proc.new do
71
+ state = :stopping
72
72
  end
73
73
  @on_stopping = Proc.new do
74
74
  state = :stopped
@@ -81,7 +81,7 @@ class Application
81
81
  # This creates a new GK::Application project.
82
82
  # The new application will be called "my_app.rb" and be placed in the
83
83
  # current directory unless otherwise specified.
84
- def project(name: TEMPLATE_PROJECT)
84
+ def project(name = TEMPLATE_PROJECT)
85
85
  # Get the path for the gk-application gem
86
86
  spec = Gem::Specification.find_by_name(GEM_NAME)
87
87
  gem_root = spec.gem_dir
metadata CHANGED
@@ -1,50 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gk-application
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.2
5
6
  platform: ruby
6
- authors:
7
- - Greg M. Krsak
7
+ authors:
8
+ - Greg M. Krsak
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
12
+
13
+ date: 2015-04-09 00:00:00 Z
12
14
  dependencies: []
13
- description: An instance of GK::Application allows you to easily mange your Ruby application's
14
- state, with minimal fuss. Supported states are :starting, :running, :stopping and
15
- :stopped.
16
- email:
17
- - greg.krsak@gmail.com
15
+
16
+ description: An instance of GK::Application allows you to easily mange your Ruby application's state, with minimal fuss. Supported states are :starting, :running, :stopping and :stopped.
17
+ email:
18
+ - greg.krsak@gmail.com
18
19
  executables: []
20
+
19
21
  extensions: []
22
+
20
23
  extra_rdoc_files: []
21
- files:
22
- - LICENSE
23
- - README.md
24
- - lib/gk-application.rb
25
- - my_app.rb
24
+
25
+ files:
26
+ - lib/gk-application.rb
27
+ - LICENSE
28
+ - README.md
29
+ - my_app.rb
26
30
  homepage: http://github.com/gregkrsak/gk-application
27
- licenses:
28
- - Apache-2
29
- metadata: {}
31
+ licenses:
32
+ - Apache-2
30
33
  post_install_message:
31
34
  rdoc_options: []
32
- require_paths:
33
- - lib
34
- required_ruby_version: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- required_rubygems_version: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: 2.0.0
35
+
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.8.24
44
50
  requirements: []
51
+
45
52
  rubyforge_project:
46
- rubygems_version: 2.2.2
53
+ rubygems_version: 1.8.24
47
54
  signing_key:
48
- specification_version: 4
55
+ specification_version: 3
49
56
  summary: A simple framework for creating applications in Ruby
50
57
  test_files: []
58
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f7e1e95fd9d6a2ab960a110027bf8f682a4ec305
4
- data.tar.gz: 5aabedda707c4ab64a11aede7a2abf3a4d3b6046
5
- SHA512:
6
- metadata.gz: 29d51509399af2a3315f37225915382cfe81a1eaf5f33313b26fadfeef0763283e53b8d3406897cee56fe2e573edf354e18c2f7ccf6d16cb5b5f006e8f90bae9
7
- data.tar.gz: a68da36b2373ec89b55da2cf9e43d490d946cb8a125d3efe20105ffd61494bf48246e5b98abb0c482147248d6a45470eca3665d2555bf2307c78438cfe4f231f