fgmt 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 75e37c6616bf75796236389057329b19f4568ba1
4
+ data.tar.gz: c71643351e82e2f8997b03ef0e27af071c5f6705
5
+ SHA512:
6
+ metadata.gz: 700c1f84261c6e745cafa856700083b6c8cdc852c2f24ac737feee95b80955a45ae66a59880c7c62539e5df47de8210697b1db381b3b70dbfb2d2d31fb3691c2
7
+ data.tar.gz: 7ca9035e8fa7c24b012be2ac2a9501fd554d2149571315ad8bbf51a5d47a2b660235d3b312bb241467df1ef59285aca6996fc6eccb7c4f479585d4a0b0e3882e
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in philippines.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fgmt (0.0.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.5)
10
+ rake (0.4.15)
11
+ rspec (2.99.0)
12
+ rspec-core (~> 2.99.0)
13
+ rspec-expectations (~> 2.99.0)
14
+ rspec-mocks (~> 2.99.0)
15
+ rspec-core (2.99.2)
16
+ rspec-expectations (2.99.2)
17
+ diff-lcs (>= 1.1.3, < 2.0)
18
+ rspec-mocks (2.99.4)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ fgmt!
25
+ rake
26
+ rspec (~> 2.13, >= 2.13.0)
27
+
28
+ BUNDLED WITH
29
+ 1.13.6
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Francis Mamaril Gonzales
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # Fgmt
2
+ by [Francis Mamaril Gonzales](https://github.com/FrancisMG)
3
+
4
+ Provides listing of different forms of government that you may need in your ruby applications.
5
+
6
+ Data in this gem was taken from Github GIST and the following repos:
7
+
8
+ * [marijn/README.markdown](https://gist.github.com/marijn/274449#file-nationalities-yaml)
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'fgmt', '~> 0.0.2'
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install fgmt
23
+
24
+ ## Usage
25
+
26
+ This gem provides the following constant arrays:
27
+
28
+ * `Fgmt::FGMT`
29
+
30
+
31
+ ## Contributing
32
+
33
+ 1. Fork it
34
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
35
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
36
+ 4. Push to the branch (`git push origin my-new-feature`)
37
+ 5. Create new Pull Request
@@ -0,0 +1,4 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
3
+ task :test => :spec
4
+ task :spec do sh 'bundle exec rspec' end
@@ -0,0 +1,24 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'fgmt/version'
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "fgmt"
7
+ gem.version = Fgmt::VERSION
8
+ gem.authors = ["Francis Mamaril Gonzales"]
9
+ gem.email = ["francisgonzales.developer@gmail.com"]
10
+ gem.description = %q{Provides listing of timezone in gmt format that you may need in your ruby applications.}
11
+ gem.summary = %q{List of Timezone in gmt format}
12
+ gem.homepage = "https://github.com/"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
+ gem.require_paths = ["lib"]
18
+
19
+ gem.required_ruby_version = ">= 1.9.2"
20
+
21
+ gem.add_development_dependency "rake"
22
+ gem.add_development_dependency 'rspec', '~> 2.13', '>= 2.13.0'
23
+
24
+ end
@@ -0,0 +1,11 @@
1
+ require "fgmt/version"
2
+ require "yaml"
3
+
4
+ module Fgmt
5
+
6
+ YML_FGMT = YAML.load_file(File.join(File.dirname(__FILE__),"fgmt", "yml", "fgmt.yml"))
7
+
8
+
9
+ FGMT= YML_FGMT.map { |_, v| v }.flatten.compact.sort
10
+
11
+ end
@@ -0,0 +1,3 @@
1
+ module Fgmt
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,42 @@
1
+ fgmts:
2
+ - "Eastern Orthodoxy"
3
+ - "Eastern Rite Churches"
4
+ - "Roman Catholicism"
5
+ - "Roman Catholic Church Hierarchy"
6
+ - "Protestantism"
7
+ - "U.S. Protestant Groups"
8
+ - "Islam"
9
+ - "Hinduism"
10
+ - "Buddhism "
11
+ - "Sikhism"
12
+ - "Judaism"
13
+ - "Bahaism"
14
+ - "Confucianism"
15
+ - "Jainism"
16
+ - "Shintoism"
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
@@ -0,0 +1,28 @@
1
+ require "spec_helper"
2
+
3
+ describe Fgmt do
4
+
5
+ context "constants" do
6
+ it { should have_constant(:FGMT) }
7
+ end
8
+
9
+ context "::FGMT" do
10
+ it "should be 15" do
11
+ Fgmt::FGMT.count.should == 15
12
+ end
13
+ end
14
+
15
+ context "::FGMT" do
16
+ it "should be 12" do
17
+ Fgmt::FGMT.count.should == 15
18
+ end
19
+ end
20
+
21
+ context "::FGMT_DATA" do
22
+ let(:countries) { Fgmt::YML_FGMT.map { |_, v| v}.flatten.sort }
23
+
24
+ it "provinces should be consistent with PROVINCES" do
25
+ countries.should == Fgmt::FGMT
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,8 @@
1
+ $: << File.expand_path("../../lib", __FILE__)
2
+ require "fgmt"
3
+
4
+ RSpec::Matchers.define :have_constant do |const|
5
+ match do |owner|
6
+ owner.const_defined?(const)
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fgmt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Francis Mamaril Gonzales
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.13'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.13.0
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.13'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.13.0
47
+ description: Provides listing of timezone in gmt format that you may need in your
48
+ ruby applications.
49
+ email:
50
+ - francisgonzales.developer@gmail.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - Gemfile
56
+ - Gemfile.lock
57
+ - LICENSE.txt
58
+ - README.md
59
+ - Rakefile
60
+ - fgmt.gemspec
61
+ - lib/fgmt.rb
62
+ - lib/fgmt/version.rb
63
+ - lib/fgmt/yml/fgmt.yml
64
+ - spec/fgmt_spec.rb
65
+ - spec/spec_helper.rb
66
+ homepage: https://github.com/
67
+ licenses: []
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 1.9.2
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.5.1
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: List of Timezone in gmt format
89
+ test_files:
90
+ - spec/fgmt_spec.rb
91
+ - spec/spec_helper.rb