da_funk 0.24.0 → 0.25.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/RELEASE_NOTES.md +6 -0
- data/lib/da_funk/i18n.rb +9 -3
- data/lib/da_funk/version.rb +1 -1
- data/lib/ext/string.rb +9 -0
- data/out/da_funk.mrb +0 -0
- data/test/unit/da_funk/support_test.rb +25 -0
- metadata +4 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 53fd7622f5a4d484264edac8de0abc27cd2bdd0f
         | 
| 4 | 
            +
              data.tar.gz: de2f8af3786ffb4db312bf84ca35782bb429c427
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: af4f59167c184a01fee0aeadf4ce8d4a4edf21019f9aa7d6904018453e74fb6b8c8ae9aabf769a3c3de98902aa9efd63aa67c7fadeb5b4b1e1a2f556086f0788
         | 
| 7 | 
            +
              data.tar.gz: 6ede4f0ebbc62f92315a2ef000e84b264bb5b616cd78635ffafd520d714ebb40143bd8593333cc93e303f5e9163fd200535d058daa45abf9c8de90e17afdbf39
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                da_funk (0. | 
| 4 | 
            +
                da_funk (0.25.0)
         | 
| 5 5 | 
             
                  archive-zip (~> 0.5)
         | 
| 6 6 | 
             
                  bundler (~> 1.7)
         | 
| 7 7 | 
             
                  cloudwalk_handshake (~> 0.6)
         | 
| @@ -20,10 +20,10 @@ GEM | |
| 20 20 | 
             
                funky-simplehttp (0.4.4)
         | 
| 21 21 | 
             
                funky-tlv (0.2.3)
         | 
| 22 22 | 
             
                io-like (0.3.0)
         | 
| 23 | 
            -
                posxml_parser (0. | 
| 23 | 
            +
                posxml_parser (0.27.0)
         | 
| 24 24 | 
             
                  funky-emv (~> 0.3)
         | 
| 25 25 | 
             
                rake (10.5.0)
         | 
| 26 | 
            -
                yard (0.9. | 
| 26 | 
            +
                yard (0.9.12)
         | 
| 27 27 |  | 
| 28 28 | 
             
            PLATFORMS
         | 
| 29 29 | 
             
              ruby
         | 
    
        data/RELEASE_NOTES.md
    CHANGED
    
    
    
        data/lib/da_funk/i18n.rb
    CHANGED
    
    | @@ -22,10 +22,16 @@ class I18n | |
| 22 22 | 
             
              end
         | 
| 23 23 |  | 
| 24 24 | 
             
              def self.configure(klass = DEFAULT_APPLICATION, locale = DEFAULT_LOCALE)
         | 
| 25 | 
            -
                raise I18nError.new("File not found") if (! File.exists?(filepath(klass)))
         | 
| 26 | 
            -
                self.parse(klass)
         | 
| 27 25 | 
             
                @locale = locale
         | 
| 28 | 
            -
                 | 
| 26 | 
            +
                unless self.configured?
         | 
| 27 | 
            +
                  raise I18nError.new("File not found") if (! File.exists?(filepath(klass)))
         | 
| 28 | 
            +
                  self.parse(klass)
         | 
| 29 | 
            +
                  raise I18nError.new("Locale not found") unless language
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
              end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
              def self.configured?
         | 
| 34 | 
            +
                @hash && language
         | 
| 29 35 | 
             
              end
         | 
| 30 36 |  | 
| 31 37 | 
             
              def self.parse(klass)
         | 
    
        data/lib/da_funk/version.rb
    CHANGED
    
    
    
        data/lib/ext/string.rb
    CHANGED
    
    
    
        data/out/da_funk.mrb
    CHANGED
    
    | Binary file | 
| @@ -0,0 +1,25 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            class CwAsdfsafAsfsXml
         | 
| 3 | 
            +
            end
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            class DaFunkSupportTest < DaFunk::Test.case
         | 
| 6 | 
            +
              def test_remove_extension
         | 
| 7 | 
            +
                assert_equal "cw_asdfsaf_asfs", Device::Support.remove_extension("asdfas/asfasf/cw_asdfsaf_asfs.posxml")
         | 
| 8 | 
            +
              end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
              def test_camelize
         | 
| 11 | 
            +
                name = Device::Support.remove_extension("asdfas/asfasf/cw_asdfsaf_asfs.posxml")
         | 
| 12 | 
            +
                assert_equal "CwAsdfsafAsfs", Device::Support.camelize(name)
         | 
| 13 | 
            +
              end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              def test_constantize
         | 
| 16 | 
            +
                name = Device::Support.remove_extension("asdfas/asfasf/cw_asdfsaf_asfs.posxml")
         | 
| 17 | 
            +
                camel = Device::Support.camelize(name) + "Xml"
         | 
| 18 | 
            +
                assert_equal CwAsdfsafAsfsXml, Device::Support.constantize(camel)
         | 
| 19 | 
            +
              end
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              def test_klass_to_file
         | 
| 22 | 
            +
                assert_equal "cw_asdfsaf_asfs_xml", CwAsdfsafAsfsXml.to_s.snakecase
         | 
| 23 | 
            +
              end
         | 
| 24 | 
            +
            end
         | 
| 25 | 
            +
             | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: da_funk
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.25.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Thiago Scalone
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017-11- | 
| 11 | 
            +
            date: 2017-11-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| @@ -222,6 +222,7 @@ files: | |
| 222 222 | 
             
            - test/test_helper.rb
         | 
| 223 223 | 
             
            - test/unit/da_funk/event_listener_test.rb
         | 
| 224 224 | 
             
            - test/unit/da_funk/struct_test.rb
         | 
| 225 | 
            +
            - test/unit/da_funk/support_test.rb
         | 
| 225 226 | 
             
            - test/unit/device/application_test.rb
         | 
| 226 227 | 
             
            - test/unit/device/display_test.rb
         | 
| 227 228 | 
             
            - test/unit/device/helper_test.rb
         | 
| @@ -270,6 +271,7 @@ test_files: | |
| 270 271 | 
             
            - test/test_helper.rb
         | 
| 271 272 | 
             
            - test/unit/da_funk/event_listener_test.rb
         | 
| 272 273 | 
             
            - test/unit/da_funk/struct_test.rb
         | 
| 274 | 
            +
            - test/unit/da_funk/support_test.rb
         | 
| 273 275 | 
             
            - test/unit/device/application_test.rb
         | 
| 274 276 | 
             
            - test/unit/device/display_test.rb
         | 
| 275 277 | 
             
            - test/unit/device/helper_test.rb
         |