cookiecutter / cookiecutter

A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.
https://pypi.org/project/cookiecutter/
BSD 3-Clause "New" or "Revised" License
21.98k stars 1.97k forks source link

Unexpected Ruby Directory Found in Generated Project #959

Closed nevillco closed 7 years ago

nevillco commented 7 years ago

Description:

Ran cookiecutter successfully with the above (iOS) template. It generated all of the expected files, but there was also a ruby/2.0.0 directory with what seems to be a full ruby install. Just wondering why this directory was included, and if there is something I can do to opt out.

What I've run:

cookiecutter gh:Raizlabs/ios-template
You've cloned /Users/connorneville/.cookiecutters/ios-template before. Is it okay to delete and re-clone it? [yes]: yes
project_name [Project Name]: Test Name
company_name [Raizlabs]: Company
bundle_identifier [com.company.test-name]: 
lead_dev [Your Name]: Lead Name
lead_email [lead.name@raizlabs.com]: 
hockey_key [Ask a tech lead for the Hockey Key or enter NO]: NO
Initialized empty Git repository in /Users/connorneville/Documents/Work/TestName/.git/
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Installing CFPropertyList 2.3.3
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing minitest 5.9.1
Installing thread_safe 0.3.5
Installing public_suffix 2.0.4
Installing babosa 1.0.2
Installing colored 1.2
Installing highline 1.7.8
Installing security 0.1.3
Installing excon 0.54.0
Installing gh_inspector 1.0.2
Installing multi_json 1.12.1
Installing plist 3.1.0
Installing rubyzip 1.1.7
Installing terminal-table 1.4.5
Installing multipart-post 2.0.0
Installing unf_ext 0.0.7.2 with native extensions
Installing multi_xml 0.5.5
Installing claide 1.0.1
Installing clamp 0.6.5
Installing fuzzy_match 2.0.4
Installing nap 1.1.0
Installing cocoapods-deintegrate 1.0.1
Installing cocoapods-downloader 1.1.3
Installing cocoapods-search 1.0.0
Installing cocoapods-stats 1.0.0
Installing netrc 0.7.8
Installing cocoapods-try 1.1.0
Installing escape 0.0.4
Installing fourflusher 2.0.1
Installing molinillo 0.5.7
Installing ruby-macho 0.2.6
Installing nanaimo 0.2.2
Installing colorize 0.8.1
Installing dotenv 2.1.1
Using bundler 1.14.6
Installing mini_magick 4.5.1
Installing rouge 1.11.1
Installing net-ssh 3.2.0
Installing slack-notifier 1.5.1
Installing jwt 1.5.6
Installing little-plugger 1.1.4
Installing memoist 0.15.0
Installing os 0.9.6
Installing httpclient 2.8.2.4
Installing hurley 0.2
Installing mime-types-data 3.2016.0521
Installing uber 0.0.15
Installing retriable 2.1.0
Installing terminal-notifier 1.6.3
Installing word_wrap 1.0.0
Installing tzinfo 1.2.2
Installing addressable 2.5.0
Installing commander 4.4.3
Installing faraday 0.10.0
Installing unf 0.1.4
Installing cocoapods-plugins 1.0.0
Installing cocoapods-trunk 1.1.2
Installing xcpretty 0.2.4
Installing net-sftp 2.1.2
Installing logging 2.1.0
Installing mime-types 3.1
Installing representable 2.3.0
Installing activesupport 4.2.7.1
Installing fastimage 1.6.8
Installing credentials_manager 0.16.4
Installing faraday_middleware 0.10.1
Installing signet 0.7.3
Installing domain_name 0.5.20161021
Installing xcpretty-travis-formatter 0.0.4
Installing cocoapods-core 1.2.0
Installing xcodeproj 1.4.1
Installing fastlane_core 0.57.0
Installing krausefx-shenzhen 0.14.11
Installing googleauth 0.5.1
Installing http-cookie 1.0.3
Installing cocoapods 1.2.0
Installing synx 0.2.1
Installing gym 1.12.1
Installing scan 0.14.2
Installing screengrab 0.5.6
Installing snapshot 1.16.4
Installing google-api-client 0.9.20
Installing faraday-cookie_jar 0.0.6
Installing supply 0.7.1
Installing spaceship 0.37.0
Installing cert 1.4.4
Installing deliver 1.15.1
Installing sigh 1.11.2
Installing pem 1.4.0
Installing pilot 1.12.1
Installing produce 1.3.0
Installing xcode-install 2.0.9
/Users/connorneville/Documents/Work/TestName/ruby/2.0.0/gems/xcode-install-2.0.9/bin/🎉 maybe `gem pristine xcode-install` will fix it?
Installing frameit 2.8.0
Installing match 0.11.0
Installing fastlane 1.104.0
Bundle complete! 4 Gemfile dependencies, 97 gems now installed.
Bundled gems are installed into /Users/connorneville/Documents/Work/TestName.
Analyzing dependencies
Downloading dependencies
Installing Alamofire (4.4.0)
Installing Anchorage (3.1.0)
Installing BonMot (4.2)
Installing Crashlytics (3.8.4)
Installing Fabric (1.6.11)
Installing GoogleAnalytics (3.17.0)
Installing Instabug (7.0.5)
Installing KeychainAccess (3.0.1)
Installing Marshal (1.2.4)
Installing OHHTTPStubs (5.2.3)
Installing SwiftGen (4.2.0)
Installing SwiftLint (0.16.1)
Installing Swiftilities (0.11.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `TestName.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 12 dependencies from the Podfile and 13 total pods installed.
Skipping hockey app generation
  Syncing files that are included in Xcode project...
  Frameworks/ (excluded)
  TestName/
    API/
      APIClient.swift  
      APIConstants.swift  
      APIEndpoint.swift  
      APIError.swift  
      APISerialization.swift  
      APIValidation.swift  
      Alamofire+TestName.swift  
      BuildType+API.swift  
      OAuth.swift  
    Application/
      AppDelegate.swift  
      BuildType.swift  
      AppLifecycle/
        AnalyticsConfiguration.swift  
        AppLifecycle.swift  
        CrashlyticsConfiguration.swift  
        DebugMenuConfiguration.swift  
        InstabugConfiguration.swift  
        LoggingConfiguration.swift  
        Analytics/
          Analytics.swift  
          AnalyticsPageNames.swift  
          GoogleAnalytics.swift  
      Appearance/
        Appearance.swift  
        TextStyle.swift  
    Coordinators/
      AppCoordinator.swift  
      AuthCoordinator.swift  
      ContentCoordinator.swift  
      Coordinator.swift  
      OnboardingCoordinator.swift  
      SignInCoordinator.swift  
    Extensions/
      UIColor+Extensions.swift  
    Model/
    Resources/
      Acknowledgements.plist  
      Assets.xcassets  
      Colors.swift  
      Info.plist (build settings amended: INFOPLIST_FILE) 
      Localizable.strings  
      TestName-Bridging-Header.h  
      Generated/
        Localized.swift  
        UIImage+Asset.swift  
      xcconfig/
        Debug.xcconfig  
        Develop.xcconfig  
        Global.xcconfig  
        Raizlabs-Account.xcconfig  
        Sprint.xcconfig  
      LaunchScreen.storyboard/
        Base  
    Screens/
      ContentTabBarViewController.swift  
      Onboarding/
        OnboardingPageViewController.swift  
        OnboardingSamplePageViewController.swift  
        OnboardingSamplePageViewModel.swift  
    Utilities/
      Closures.swift  
      Formatters.swift  
      Marshal+Utility.swift  
      UserDefaults+Utility.swift  
  TestNameTests/
    Info.plist (build settings amended: INFOPLIST_FILE) 
    TestNameTests.swift  
    Helpers/
      Payloads.swift  
      TestConstants.swift  
      TestEndpoint.swift  
    OAuth/
      APIClientTests.swift  
      OAuthTests.swift  
  Pods/ (excluded)
  Products/ (excluded)

  Syncing files that are not included in Xcode project..
  Frameworks/ (excluded)
  TestName/
    API/
    Application/
      Generated
        Localized.swift (source/image file that is not referenced by the Xcode project)
        UIImage+Asset.swift (source/image file that is not referenced by the Xcode project)
      AppLifecycle/
        Analytics/
      Appearance/
    Coordinators/
    Extensions/
    Model/
      .gitkeep
    Resources/
      Base.lproj
      Generated/
      xcconfig/
      LaunchScreen.storyboard/
        Base.lproj
    Screens/
      .gitkeep
      FirstTabViewController.swift (source/image file that is not referenced by the Xcode project)
      Onboarding/
    Utilities/
  TestNameTests/
    APIClientTests.swift (source/image file that is not referenced by the Xcode project)
    OAuthTests.swift (source/image file that is not referenced by the Xcode project)
    Payloads.swift (source/image file that is not referenced by the Xcode project)
    TestConstants.swift (source/image file that is not referenced by the Xcode project)
    TestEndpoint.swift (source/image file that is not referenced by the Xcode project)
    Helpers/
    OAuth/
  Pods/ (excluded)
  Products/ (excluded)
hackebrot commented 7 years ago

Hi @nevillco! 👋

Cookiecutter itself does not create this particular directory or install any applications or packages. It seems the template, that you used, runs a number of bundle commands in the post_gen_project hook. I'm not a ruby expert, but that would be my starting point for debugging why it gets created.

Can you please raise this issue with the template project?

Hope this helps!

nevillco commented 7 years ago

Ah, that seems to be the problem! As someone far less of a ruby expert than you, thanks for narrowing that down.

hackebrot commented 7 years ago

Sure thing, you're welcome! 🍪