paru 0.3.1.0.a → 0.3.1.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 +5 -5
 - data/lib/paru.rb +1 -1
 - data/lib/paru/filter/attr.rb +4 -4
 - metadata +5 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e75e80611f871b0583b09bd03c96f83f86f820cb330065d944aed48bfbd54b71
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 84fb71e39144ffaf39d329d843f00d0fdcd232a3335cea9998626b1f0ebb165d
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c2fd5652fd1d596519eb7b70d19d7e0a08074765df02db31cd3fd2547b8f6991092f5403c2c3289b09e9b157fc4871672aad0a5ab667dd82d789b39959ff0f0e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c9afee1fd3e55e6a11120080b717d5bfe8d978948e8c25941566478fc80292065d65f3ba0884c47b64b3fcdd3aa5d6c270b94b5d3804aaa62cd9294d0fa14322
         
     | 
    
        data/lib/paru.rb
    CHANGED
    
    
    
        data/lib/paru/filter/attr.rb
    CHANGED
    
    | 
         @@ -45,7 +45,7 @@ module Paru 
     | 
|
| 
       45 
45 
     | 
    
         
             
                            @classes = classes || []
         
     | 
| 
       46 
46 
     | 
    
         
             
                            @classes = [@classes] unless @classes.is_a? Array
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
                            @data = data || {}
         
     | 
| 
      
 48 
     | 
    
         
            +
                            @data = Hash[data] || {}
         
     | 
| 
       49 
49 
     | 
    
         
             
                        end
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                        # For each key-value pair of this attributes object
         
     | 
| 
         @@ -58,7 +58,7 @@ module Paru 
     | 
|
| 
       58 
58 
     | 
    
         
             
                        # @param key [String] the key to get the value for. Nil if it does
         
     | 
| 
       59 
59 
     | 
    
         
             
                        # not exists
         
     | 
| 
       60 
60 
     | 
    
         
             
                        def [](key) 
         
     | 
| 
       61 
     | 
    
         
            -
                            if @data. 
     | 
| 
      
 61 
     | 
    
         
            +
                            if @data.key? key
         
     | 
| 
       62 
62 
     | 
    
         
             
                                @data[key]
         
     | 
| 
       63 
63 
     | 
    
         
             
                            end 
         
     | 
| 
       64 
64 
     | 
    
         
             
                        end
         
     | 
| 
         @@ -69,7 +69,7 @@ module Paru 
     | 
|
| 
       69 
69 
     | 
    
         
             
                        #
         
     | 
| 
       70 
70 
     | 
    
         
             
                        # @return [Boolean] true if this key exist, false otherwise
         
     | 
| 
       71 
71 
     | 
    
         
             
                        def has_key?(name)
         
     | 
| 
       72 
     | 
    
         
            -
                            @data. 
     | 
| 
      
 72 
     | 
    
         
            +
                            @data.key? name
         
     | 
| 
       73 
73 
     | 
    
         
             
                        end
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         
             
                        # Does this attributes object have a class?
         
     | 
| 
         @@ -90,7 +90,7 @@ module Paru 
     | 
|
| 
       90 
90 
     | 
    
         
             
                            [
         
     | 
| 
       91 
91 
     | 
    
         
             
                                @id,
         
     | 
| 
       92 
92 
     | 
    
         
             
                                @classes,
         
     | 
| 
       93 
     | 
    
         
            -
                                @data
         
     | 
| 
      
 93 
     | 
    
         
            +
                                @data.to_a
         
     | 
| 
       94 
94 
     | 
    
         
             
                            ]
         
     | 
| 
       95 
95 
     | 
    
         
             
                        end
         
     | 
| 
       96 
96 
     | 
    
         
             
                    end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: paru
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.3.1.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Huub de Beer
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2018- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-12-02 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Use Pandoc (http://www.pandoc.org) with ruby
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: Huub@heerdebeer.org
         
     | 
| 
         @@ -102,12 +102,12 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       102 
102 
     | 
    
         
             
                  version: 2.3.7
         
     | 
| 
       103 
103 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       104 
104 
     | 
    
         
             
              requirements:
         
     | 
| 
       105 
     | 
    
         
            -
              - - " 
     | 
| 
      
 105 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       106 
106 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       107 
     | 
    
         
            -
                  version:  
     | 
| 
      
 107 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       108 
108 
     | 
    
         
             
            requirements: []
         
     | 
| 
       109 
109 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       110 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 110 
     | 
    
         
            +
            rubygems_version: 2.7.7
         
     | 
| 
       111 
111 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       112 
112 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       113 
113 
     | 
    
         
             
            summary: Paru is a ruby wrapper around pandoc
         
     |