ghost_writer 0.0.1
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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +6 -0
- data/ghost_writer.gemspec +26 -0
- data/lib/ghost_writer/version.rb +3 -0
- data/lib/ghost_writer.rb +81 -0
- data/spec/lib/ghost_writer_spec.rb +103 -0
- data/spec/rails_app/.gitignore +15 -0
- data/spec/rails_app/README.rdoc +261 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/controllers/application_controller.rb +3 -0
- data/spec/rails_app/app/controllers/posts_controller.rb +15 -0
- data/spec/rails_app/app/models/.gitkeep +0 -0
- data/spec/rails_app/config/application.rb +63 -0
- data/spec/rails_app/config/boot.rb +6 -0
- data/spec/rails_app/config/database.yml +21 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +37 -0
- data/spec/rails_app/config/environments/production.rb +67 -0
- data/spec/rails_app/config/environments/test.rb +37 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +15 -0
- data/spec/rails_app/config/initializers/mime_types.rb +5 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails_app/config/locales/en.yml +5 -0
- data/spec/rails_app/config/routes.rb +3 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/db/seeds.rb +7 -0
- data/spec/rails_app/lib/assets/.gitkeep +0 -0
- data/spec/rails_app/lib/tasks/.gitkeep +0 -0
- data/spec/rails_app/public/404.html +26 -0
- data/spec/rails_app/public/422.html +26 -0
- data/spec/rails_app/public/500.html +25 -0
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/public/index.html +241 -0
- data/spec/rails_app/public/robots.txt +5 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/rails_app/test/fixtures/.gitkeep +0 -0
- data/spec/rails_app/test/functional/.gitkeep +0 -0
- data/spec/rails_app/test/integration/.gitkeep +0 -0
- data/spec/rails_app/test/performance/browsing_test.rb +12 -0
- data/spec/rails_app/test/test_helper.rb +13 -0
- data/spec/rails_app/test/unit/.gitkeep +0 -0
- data/spec/spec_helper.rb +16 -0
- metadata +219 -0
| @@ -0,0 +1,6 @@ | |
| 1 | 
            +
            #!/usr/bin/env ruby
         | 
| 2 | 
            +
            # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            APP_PATH = File.expand_path('../../config/application',  __FILE__)
         | 
| 5 | 
            +
            require File.expand_path('../../config/boot',  __FILE__)
         | 
| 6 | 
            +
            require 'rails/commands'
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            require 'test_helper'
         | 
| 2 | 
            +
            require 'rails/performance_test_help'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            class BrowsingTest < ActionDispatch::PerformanceTest
         | 
| 5 | 
            +
              # Refer to the documentation for all available options
         | 
| 6 | 
            +
              # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
         | 
| 7 | 
            +
              #                          :output => 'tmp/performance', :formats => [:flat] }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
              def test_homepage
         | 
| 10 | 
            +
                get '/'
         | 
| 11 | 
            +
              end
         | 
| 12 | 
            +
            end
         | 
| @@ -0,0 +1,13 @@ | |
| 1 | 
            +
            ENV["RAILS_ENV"] = "test"
         | 
| 2 | 
            +
            require File.expand_path('../../config/environment', __FILE__)
         | 
| 3 | 
            +
            require 'rails/test_help'
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            class ActiveSupport::TestCase
         | 
| 6 | 
            +
              # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
         | 
| 7 | 
            +
              #
         | 
| 8 | 
            +
              # Note: You'll currently still have to declare fixtures explicitly in integration tests
         | 
| 9 | 
            +
              # -- they do not yet inherit this setting
         | 
| 10 | 
            +
              fixtures :all
         | 
| 11 | 
            +
             | 
| 12 | 
            +
              # Add more helper methods to be used by all tests here...
         | 
| 13 | 
            +
            end
         | 
| 
            File without changes
         | 
    
        data/spec/spec_helper.rb
    ADDED
    
    | @@ -0,0 +1,16 @@ | |
| 1 | 
            +
            ENV["RAILS_ENV"] = "test"
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            $:.unshift File.dirname(__FILE__)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require "rails_app/config/environment"
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            I18n.load_path << File.expand_path("../support/locale/en.yml", __FILE__)
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            require "rspec/rails"
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            class NullObject
         | 
| 12 | 
            +
              private
         | 
| 13 | 
            +
              def method_missing(method, *args, &block)
         | 
| 14 | 
            +
                # ignore
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            end
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,219 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: ghost_writer
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.1
         | 
| 5 | 
            +
              prerelease: 
         | 
| 6 | 
            +
            platform: ruby
         | 
| 7 | 
            +
            authors:
         | 
| 8 | 
            +
            - joker1007
         | 
| 9 | 
            +
            autorequire: 
         | 
| 10 | 
            +
            bindir: bin
         | 
| 11 | 
            +
            cert_chain: []
         | 
| 12 | 
            +
            date: 2013-01-08 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: activesupport
         | 
| 16 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: 3.0.0
         | 
| 22 | 
            +
              type: :runtime
         | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            +
                none: false
         | 
| 26 | 
            +
                requirements:
         | 
| 27 | 
            +
                - - ! '>='
         | 
| 28 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            +
                    version: 3.0.0
         | 
| 30 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            +
              name: rspec-rails
         | 
| 32 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            +
                none: false
         | 
| 34 | 
            +
                requirements:
         | 
| 35 | 
            +
                - - ~>
         | 
| 36 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 37 | 
            +
                    version: '2.11'
         | 
| 38 | 
            +
              type: :runtime
         | 
| 39 | 
            +
              prerelease: false
         | 
| 40 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 41 | 
            +
                none: false
         | 
| 42 | 
            +
                requirements:
         | 
| 43 | 
            +
                - - ~>
         | 
| 44 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 45 | 
            +
                    version: '2.11'
         | 
| 46 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 47 | 
            +
              name: rspec
         | 
| 48 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            +
                none: false
         | 
| 50 | 
            +
                requirements:
         | 
| 51 | 
            +
                - - ~>
         | 
| 52 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                    version: '2.12'
         | 
| 54 | 
            +
              type: :development
         | 
| 55 | 
            +
              prerelease: false
         | 
| 56 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            +
                none: false
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - ~>
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '2.12'
         | 
| 62 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 63 | 
            +
              name: rake
         | 
| 64 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                none: false
         | 
| 66 | 
            +
                requirements:
         | 
| 67 | 
            +
                - - ! '>='
         | 
| 68 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            +
                    version: '0'
         | 
| 70 | 
            +
              type: :development
         | 
| 71 | 
            +
              prerelease: false
         | 
| 72 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 73 | 
            +
                none: false
         | 
| 74 | 
            +
                requirements:
         | 
| 75 | 
            +
                - - ! '>='
         | 
| 76 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 77 | 
            +
                    version: '0'
         | 
| 78 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 79 | 
            +
              name: rails
         | 
| 80 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 81 | 
            +
                none: false
         | 
| 82 | 
            +
                requirements:
         | 
| 83 | 
            +
                - - ~>
         | 
| 84 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 85 | 
            +
                    version: 3.2.9
         | 
| 86 | 
            +
              type: :development
         | 
| 87 | 
            +
              prerelease: false
         | 
| 88 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 89 | 
            +
                none: false
         | 
| 90 | 
            +
                requirements:
         | 
| 91 | 
            +
                - - ~>
         | 
| 92 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 93 | 
            +
                    version: 3.2.9
         | 
| 94 | 
            +
            description: Generate API examples from params and response of controller specs
         | 
| 95 | 
            +
            email:
         | 
| 96 | 
            +
            - kakyoin.hierophant@gmail.com
         | 
| 97 | 
            +
            executables: []
         | 
| 98 | 
            +
            extensions: []
         | 
| 99 | 
            +
            extra_rdoc_files: []
         | 
| 100 | 
            +
            files:
         | 
| 101 | 
            +
            - .gitignore
         | 
| 102 | 
            +
            - Gemfile
         | 
| 103 | 
            +
            - LICENSE.txt
         | 
| 104 | 
            +
            - README.md
         | 
| 105 | 
            +
            - Rakefile
         | 
| 106 | 
            +
            - ghost_writer.gemspec
         | 
| 107 | 
            +
            - lib/ghost_writer.rb
         | 
| 108 | 
            +
            - lib/ghost_writer/version.rb
         | 
| 109 | 
            +
            - spec/lib/ghost_writer_spec.rb
         | 
| 110 | 
            +
            - spec/rails_app/.gitignore
         | 
| 111 | 
            +
            - spec/rails_app/README.rdoc
         | 
| 112 | 
            +
            - spec/rails_app/Rakefile
         | 
| 113 | 
            +
            - spec/rails_app/app/controllers/application_controller.rb
         | 
| 114 | 
            +
            - spec/rails_app/app/controllers/posts_controller.rb
         | 
| 115 | 
            +
            - spec/rails_app/app/models/.gitkeep
         | 
| 116 | 
            +
            - spec/rails_app/config.ru
         | 
| 117 | 
            +
            - spec/rails_app/config/application.rb
         | 
| 118 | 
            +
            - spec/rails_app/config/boot.rb
         | 
| 119 | 
            +
            - spec/rails_app/config/database.yml
         | 
| 120 | 
            +
            - spec/rails_app/config/environment.rb
         | 
| 121 | 
            +
            - spec/rails_app/config/environments/development.rb
         | 
| 122 | 
            +
            - spec/rails_app/config/environments/production.rb
         | 
| 123 | 
            +
            - spec/rails_app/config/environments/test.rb
         | 
| 124 | 
            +
            - spec/rails_app/config/initializers/backtrace_silencers.rb
         | 
| 125 | 
            +
            - spec/rails_app/config/initializers/inflections.rb
         | 
| 126 | 
            +
            - spec/rails_app/config/initializers/mime_types.rb
         | 
| 127 | 
            +
            - spec/rails_app/config/initializers/secret_token.rb
         | 
| 128 | 
            +
            - spec/rails_app/config/initializers/session_store.rb
         | 
| 129 | 
            +
            - spec/rails_app/config/initializers/wrap_parameters.rb
         | 
| 130 | 
            +
            - spec/rails_app/config/locales/en.yml
         | 
| 131 | 
            +
            - spec/rails_app/config/routes.rb
         | 
| 132 | 
            +
            - spec/rails_app/db/seeds.rb
         | 
| 133 | 
            +
            - spec/rails_app/lib/assets/.gitkeep
         | 
| 134 | 
            +
            - spec/rails_app/lib/tasks/.gitkeep
         | 
| 135 | 
            +
            - spec/rails_app/public/404.html
         | 
| 136 | 
            +
            - spec/rails_app/public/422.html
         | 
| 137 | 
            +
            - spec/rails_app/public/500.html
         | 
| 138 | 
            +
            - spec/rails_app/public/favicon.ico
         | 
| 139 | 
            +
            - spec/rails_app/public/index.html
         | 
| 140 | 
            +
            - spec/rails_app/public/robots.txt
         | 
| 141 | 
            +
            - spec/rails_app/script/rails
         | 
| 142 | 
            +
            - spec/rails_app/test/fixtures/.gitkeep
         | 
| 143 | 
            +
            - spec/rails_app/test/functional/.gitkeep
         | 
| 144 | 
            +
            - spec/rails_app/test/integration/.gitkeep
         | 
| 145 | 
            +
            - spec/rails_app/test/performance/browsing_test.rb
         | 
| 146 | 
            +
            - spec/rails_app/test/test_helper.rb
         | 
| 147 | 
            +
            - spec/rails_app/test/unit/.gitkeep
         | 
| 148 | 
            +
            - spec/spec_helper.rb
         | 
| 149 | 
            +
            homepage: https://github.com/joker1007/ghost_writer
         | 
| 150 | 
            +
            licenses: []
         | 
| 151 | 
            +
            post_install_message: 
         | 
| 152 | 
            +
            rdoc_options: []
         | 
| 153 | 
            +
            require_paths:
         | 
| 154 | 
            +
            - lib
         | 
| 155 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 156 | 
            +
              none: false
         | 
| 157 | 
            +
              requirements:
         | 
| 158 | 
            +
              - - ! '>='
         | 
| 159 | 
            +
                - !ruby/object:Gem::Version
         | 
| 160 | 
            +
                  version: '0'
         | 
| 161 | 
            +
                  segments:
         | 
| 162 | 
            +
                  - 0
         | 
| 163 | 
            +
                  hash: 1116131178365198946
         | 
| 164 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 165 | 
            +
              none: false
         | 
| 166 | 
            +
              requirements:
         | 
| 167 | 
            +
              - - ! '>='
         | 
| 168 | 
            +
                - !ruby/object:Gem::Version
         | 
| 169 | 
            +
                  version: '0'
         | 
| 170 | 
            +
                  segments:
         | 
| 171 | 
            +
                  - 0
         | 
| 172 | 
            +
                  hash: 1116131178365198946
         | 
| 173 | 
            +
            requirements: []
         | 
| 174 | 
            +
            rubyforge_project: 
         | 
| 175 | 
            +
            rubygems_version: 1.8.23
         | 
| 176 | 
            +
            signing_key: 
         | 
| 177 | 
            +
            specification_version: 3
         | 
| 178 | 
            +
            summary: Generate API examples from params and response of controller specs
         | 
| 179 | 
            +
            test_files:
         | 
| 180 | 
            +
            - spec/lib/ghost_writer_spec.rb
         | 
| 181 | 
            +
            - spec/rails_app/.gitignore
         | 
| 182 | 
            +
            - spec/rails_app/README.rdoc
         | 
| 183 | 
            +
            - spec/rails_app/Rakefile
         | 
| 184 | 
            +
            - spec/rails_app/app/controllers/application_controller.rb
         | 
| 185 | 
            +
            - spec/rails_app/app/controllers/posts_controller.rb
         | 
| 186 | 
            +
            - spec/rails_app/app/models/.gitkeep
         | 
| 187 | 
            +
            - spec/rails_app/config.ru
         | 
| 188 | 
            +
            - spec/rails_app/config/application.rb
         | 
| 189 | 
            +
            - spec/rails_app/config/boot.rb
         | 
| 190 | 
            +
            - spec/rails_app/config/database.yml
         | 
| 191 | 
            +
            - spec/rails_app/config/environment.rb
         | 
| 192 | 
            +
            - spec/rails_app/config/environments/development.rb
         | 
| 193 | 
            +
            - spec/rails_app/config/environments/production.rb
         | 
| 194 | 
            +
            - spec/rails_app/config/environments/test.rb
         | 
| 195 | 
            +
            - spec/rails_app/config/initializers/backtrace_silencers.rb
         | 
| 196 | 
            +
            - spec/rails_app/config/initializers/inflections.rb
         | 
| 197 | 
            +
            - spec/rails_app/config/initializers/mime_types.rb
         | 
| 198 | 
            +
            - spec/rails_app/config/initializers/secret_token.rb
         | 
| 199 | 
            +
            - spec/rails_app/config/initializers/session_store.rb
         | 
| 200 | 
            +
            - spec/rails_app/config/initializers/wrap_parameters.rb
         | 
| 201 | 
            +
            - spec/rails_app/config/locales/en.yml
         | 
| 202 | 
            +
            - spec/rails_app/config/routes.rb
         | 
| 203 | 
            +
            - spec/rails_app/db/seeds.rb
         | 
| 204 | 
            +
            - spec/rails_app/lib/assets/.gitkeep
         | 
| 205 | 
            +
            - spec/rails_app/lib/tasks/.gitkeep
         | 
| 206 | 
            +
            - spec/rails_app/public/404.html
         | 
| 207 | 
            +
            - spec/rails_app/public/422.html
         | 
| 208 | 
            +
            - spec/rails_app/public/500.html
         | 
| 209 | 
            +
            - spec/rails_app/public/favicon.ico
         | 
| 210 | 
            +
            - spec/rails_app/public/index.html
         | 
| 211 | 
            +
            - spec/rails_app/public/robots.txt
         | 
| 212 | 
            +
            - spec/rails_app/script/rails
         | 
| 213 | 
            +
            - spec/rails_app/test/fixtures/.gitkeep
         | 
| 214 | 
            +
            - spec/rails_app/test/functional/.gitkeep
         | 
| 215 | 
            +
            - spec/rails_app/test/integration/.gitkeep
         | 
| 216 | 
            +
            - spec/rails_app/test/performance/browsing_test.rb
         | 
| 217 | 
            +
            - spec/rails_app/test/test_helper.rb
         | 
| 218 | 
            +
            - spec/rails_app/test/unit/.gitkeep
         | 
| 219 | 
            +
            - spec/spec_helper.rb
         |