rgettext_poedit 0.0.0 → 0.0.1

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: 61519ab6f494dc5c7ca8e5d4d670f3b5d5d6c939
4
- data.tar.gz: 55e1e1a744f459bcbaed2f87f5d708765dd657a3
3
+ metadata.gz: 22519680349c5d1bf19928498618309c6d6a10bc
4
+ data.tar.gz: 25331de0c8b9d70cf57752fdbfc64ca8b21bf7d1
5
5
  SHA512:
6
- metadata.gz: 160b4fe13a4e917e10ed88c52bbcaaff27e5c3393fb1c2626343715d3bad8f440c8e6868f738a4dba48a72bd6c8d9615bd5dc43ad559e7bf2240771fa73a9289
7
- data.tar.gz: ad36d74c05c8480ca0a38c02603db123d35f191e169e8d5f111eccb523c0a50736574e9e206ebc46840d77f09da4ac4523531512ba9fca1d636031babf56949c
6
+ metadata.gz: a64883503c5a16f266a18e9731e187eeacd258ba21c559d0f890ad562d30f427582077ae2a70ed0a317b75fea9d111ae9af01cc0b1dc05df963e1b54e1f45e0c
7
+ data.tar.gz: e39befe2df5d886dfa7dbbfdfbd965d0a94eac0917f7ab9095d9f11248f092380f715b3bf41c52cfd461869dc51633d3ef6ccd81442c480b8f8f385dc6a08f9c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -6,7 +6,7 @@ class RgettextPoedit
6
6
  @files = args[:files]
7
7
  @translations = {}
8
8
  @method_names = ["_", "gettext"]
9
- @valid_beginning = '(^|\s+|\(|\{)'
9
+ @valid_beginning = '(^|\s+|\(|\{|<%=\s*)'
10
10
  end
11
11
 
12
12
  def parse_files
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "rgettext_poedit"
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kasper Johansen"]
12
+ s.date = "2014-04-10"
13
+ s.description = "Scanning of source files to generate .po files to work with application like POEdit."
14
+ s.email = "k@spernj.org"
15
+ s.executables = ["rgettext_poedit"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE.txt",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "bin/rgettext_poedit",
30
+ "lib/rgettext_poedit.rb",
31
+ "rgettext_poedit.gemspec",
32
+ "spec/rgettext_poedit_spec.rb",
33
+ "spec/spec_helper.rb"
34
+ ]
35
+ s.homepage = "http://github.com/kaspernj/rgettext_poedit"
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = "2.0.7"
39
+ s.summary = "Scanning of source files to generate .po files to work with application like POEdit."
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 4
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<knjrbfw>, [">= 0"])
46
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
47
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
49
+ else
50
+ s.add_dependency(%q<knjrbfw>, [">= 0"])
51
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<knjrbfw>, [">= 0"])
57
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
58
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
60
+ end
61
+ end
62
+
@@ -13,7 +13,8 @@ describe "RgettextPoedit" do
13
13
  ' _"Test 6 %{name}", :name ',
14
14
  ' _"Test 7" ',
15
15
  " _'Test 8' \n",
16
- " str = \"Hejsa \#{_('Test 9')} "
16
+ " str = \"Hejsa \#{_('Test 9')} ",
17
+ '<%=_"Test 10"%>'
17
18
  ]
18
19
 
19
20
  lines.each do |line|
@@ -31,5 +32,6 @@ describe "RgettextPoedit" do
31
32
  strs.keys.should include "Test 7"
32
33
  strs.keys.should include "Test 8"
33
34
  strs.keys.should include "Test 9"
35
+ strs.keys.should include "Test 10"
34
36
  end
35
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgettext_poedit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: knjrbfw
@@ -86,6 +86,7 @@ files:
86
86
  - VERSION
87
87
  - bin/rgettext_poedit
88
88
  - lib/rgettext_poedit.rb
89
+ - rgettext_poedit.gemspec
89
90
  - spec/rgettext_poedit_spec.rb
90
91
  - spec/spec_helper.rb
91
92
  homepage: http://github.com/kaspernj/rgettext_poedit