lastobelus-merb_global 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/HISTORY +34 -0
  2. data/LICENSE +21 -0
  3. data/README +4 -0
  4. data/Rakefile +78 -0
  5. data/TODO +4 -0
  6. metadata +81 -0
data/HISTORY ADDED
@@ -0,0 +1,34 @@
1
+ === 0.0.7
2
+ * More consistent configuration of supported languages
3
+ * JRuby Numeric provider
4
+ * Some small fixes
5
+
6
+ === 0.0.6
7
+ * Introduction of Locale object
8
+ * Change of MessageProviders interface
9
+ * Per-environment configuration
10
+
11
+ === 0.0.5
12
+ * Handles lang_REGION as lang
13
+ * Renamed providers into message providers and translate_to into localize
14
+ * Added support for localization of dates and numbers
15
+ * Updated specs
16
+
17
+ === 0.0.4
18
+ * Changed database format (to allow importing/exporting)
19
+ * Added importing/exporting (EXPERIMENTAL)
20
+
21
+ === 0.0.3
22
+ * New Plural engine
23
+
24
+ === 0.0.2
25
+ * Added language customisation
26
+ * Support for auto-choose of language
27
+ * Support for DataMapper 0.9 (removed for 0.3)
28
+ * Developed examples
29
+ * Clean-up of code
30
+ * Minor other improvements
31
+
32
+ === 0.0.1
33
+ * Basic support for 'view' translation
34
+ * Auto-guess of language on base of Accept-Language header
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2008 Alex Coles, Ikonoklastik Productions
2
+ Maciej Piechotka
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,4 @@
1
+ = merb_global
2
+ == Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework
3
+
4
+ Please see README.markdown.
data/Rakefile ADDED
@@ -0,0 +1,78 @@
1
+ require 'rubygems'
2
+ require 'rake/gempackagetask'
3
+ require 'rake/rdoctask'
4
+
5
+ PLUGIN = "merb_global"
6
+ NAME = "merb_global"
7
+ GEM_VERSION = "0.0.7"
8
+ AUTHORS = ["Alex Coles", "Maciej Piechotka"]
9
+ EMAIL = "merb_global@googlegroups.com"
10
+ HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
11
+ SUMMARY = "Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework"
12
+
13
+ def spec
14
+ require 'spec/rake/spectask'
15
+ Gem::Specification.new do |s|
16
+ s.name = NAME
17
+ s.version = GEM_VERSION
18
+ s.platform = Gem::Platform::RUBY
19
+ s.summary = SUMMARY
20
+ s.description = s.summary
21
+ s.authors = AUTHORS
22
+ s.email = EMAIL
23
+ s.homepage = HOMEPAGE
24
+ s.rubyforge_project = 'merb-global'
25
+ s.add_dependency('merb-core', '>= 0.9.1')
26
+ s.add_dependency('treetop', '>= 1.2.3') # Tested on 1.2.3
27
+ s.require_path = 'lib'
28
+ s.autorequire = PLUGIN
29
+ s.files = %w(LICENSE README Rakefile TODO HISTORY) +
30
+ Dir.glob("{lib,specs,*_generators,examples}/**/*")
31
+
32
+ # rdoc
33
+ s.has_rdoc = true
34
+ s.extra_rdoc_files = %w(README LICENSE TODO HISTORY)
35
+ end
36
+ end
37
+
38
+ Rake::GemPackageTask.new(spec) do |pkg|
39
+ pkg.gem_spec = spec
40
+ end
41
+
42
+ desc "Install merb_global"
43
+ task :install => [:package] do
44
+ sh %{gem install pkg/#{NAME}-#{GEM_VERSION}}
45
+ end
46
+
47
+ Rake::RDocTask.new do |rd|
48
+ rd.rdoc_dir = "doc"
49
+ rd.rdoc_files.include "lib/**/*.rb"
50
+ end
51
+
52
+ desc "Creates database for examples"
53
+ task :populate_db do
54
+ require 'fileutils'
55
+ pwd = File.dirname __FILE__
56
+ db = "#{pwd}/examples/database.db"
57
+ sh %{sqlite3 #{db} < #{pwd}/examples/database.sql}
58
+ FileUtils.cp db, "#{pwd}/examples/active_record_example/database.db"
59
+ FileUtils.cp db, "#{pwd}/examples/data_mapper_example/database.db"
60
+ FileUtils.cp db, "#{pwd}/examples/sequel_example/database.db"
61
+ end
62
+ task "pkg/#{NAME}-#{GEM_VERSION}" => [:populate_db]
63
+
64
+ desc "Run all specs"
65
+ Spec::Rake::SpecTask.new('specs') do |st|
66
+ st.libs = ['lib', 'spec']
67
+ st.spec_files = FileList['spec/**/*_spec.rb']
68
+ st.spec_opts = ['--format specdoc', '--color']
69
+ end
70
+
71
+ desc "Run rcov"
72
+ Spec::Rake::SpecTask.new('rcov') do |rct|
73
+ rct.libs = ['lib', 'spec']
74
+ rct.rcov = true
75
+ rct.rcov_opts = ['-x gems', '-x usr', '-x spec']
76
+ rct.spec_files = FileList['spec/**/*.rb']
77
+ rct.spec_opts = ['--format specdoc', '--color']
78
+ end
data/TODO ADDED
@@ -0,0 +1,4 @@
1
+ = TODO
2
+
3
+ Please see http://trac.ikonoklastik.com/merb_global/ for the MerbGlobal issue
4
+ tracker.
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lastobelus-merb_global
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
+ platform: ruby
6
+ authors:
7
+ - Alex Coles
8
+ - Maciej Piechotka
9
+ - Michael Johnston
10
+ autorequire: merb_global
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2009-04-01 00:00:00 -07:00
15
+ default_executable:
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: merb-core
19
+ type: :runtime
20
+ version_requirement:
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 0.9.1
26
+ version:
27
+ - !ruby/object:Gem::Dependency
28
+ name: treetop
29
+ type: :runtime
30
+ version_requirement:
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 1.2.3
36
+ version:
37
+ description: Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework
38
+ email: merb_global@googlegroups.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - README
45
+ - LICENSE
46
+ - TODO
47
+ - HISTORY
48
+ files:
49
+ - LICENSE
50
+ - README
51
+ - Rakefile
52
+ - TODO
53
+ - HISTORY
54
+ has_rdoc: true
55
+ homepage: http://trac.ikonoklastik.com/merb_global/
56
+ post_install_message:
57
+ rdoc_options: []
58
+
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ requirements: []
74
+
75
+ rubyforge_project: merb-global
76
+ rubygems_version: 1.2.0
77
+ signing_key:
78
+ specification_version: 2
79
+ summary: Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework
80
+ test_files: []
81
+